An open API service indexing awesome lists of open source software.

https://github.com/cod3licious/classifymewhy

FastAPI App to explain text classification decisions by highlighting contributing words
https://github.com/cod3licious/classifymewhy

Last synced: 7 months ago
JSON representation

FastAPI App to explain text classification decisions by highlighting contributing words

Awesome Lists containing this project

README

          

## READ ME

1.) open a terminal in the `classifymewhy` folder

2.) install all required packages (assumes an existing uv installation):
```
$ uv sync
```

3.) train & save machine learning model:
```
$ uv run python src/utils.py
```

4.) run local server at `http://127.0.0.1:8000` and to test the app in the browser:
```
$ uv run uvicorn src.main:app --reload
```

5.) send a post request with some data to `http://127.0.0.1:8000/classify`, for example using the `test_classify.py` script in the `classifymewhy/tests` folder:
```
$ uv run python tests/test_classify.py
```