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
- Host: GitHub
- URL: https://github.com/cod3licious/classifymewhy
- Owner: cod3licious
- Created: 2024-02-12T14:04:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T13:45:16.000Z (11 months ago)
- Last Synced: 2025-03-23T14:34:37.297Z (11 months ago)
- Language: CSS
- Size: 106 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```