File Service for Chat Nio
- Text
- Image
- Audio (require Azure Speech to Text Service)
- Docx
- Pptx
- Xlsx
pip install -r requirements.txt
uvicorn main:app --reload
Then the service will be running on http://localhost:8000
uvicorn main:app
POST
/upload
Upload a file
{
"file": "file"
}
Response
{
"status": true,
"content": "...",
"error": ""
}
Environment Variables
AZURE_SPEECH_KEY
: Azure Speech to Text Service KeyAZURE_SPEECH_REGION
: Azure Speech to Text Service Region