Ahmed99a/cough-audio-fastapi
0
COVID Cough Clinical Support
Prototype FastAPI application for cough-audio analysis as physician decision support.
Before you run or deploy
Copy these training artifacts into the artifacts/ folder:
model.pklscaler.pkllabel_encoder.pklfeature_columns.jsonconfig.json
Local run
pip install -r requirements.txt
uvicorn app:app --host 0.0.0.0 --port 7860 --reloadThen open:
http://127.0.0.1:7860/http://127.0.0.1:7860/health
Hugging Face Spaces
- Create a new Docker Space.
- Upload all files from this folder.
- Put your five artifacts inside
artifacts/. - Wait for the build to finish.
- Open the Space URL and test recording/upload.
Endpoints
GET /: recording and upload pageGET /health: service health and artifact statusPOST /predict: upload audio file for inferencePOST /reload-artifacts: reload artifacts after copying them
Important note
This app is a prototype clinical support tool and must not be used as a standalone diagnosis.
