- Text
- Image (require vision models)
- Audio (require Azure Speech to Text Service)
- Docx (not support .doc)
- Pptx (not support doc)
- Xlsx (support .xls)
pip install -r requirements.txt
uvicorn main:app --reload
Then the service will be running on http://localhost:8000
uvicorn main:app
Image:
programzmh/chatnio-blob-service
docker run -p 8000:8000 programzmh/chatnio-blob-service
# with environment variables
# docker run -p 8000:8000 -e AZURE_SPEECH_KEY="..." -e AZURE_SPEECH_REGION="..." programzmh/chatnio-blob-service
POST
/upload
Upload a file
{
"file": "file"
}
Response
{
"status": true,
"content": "...",
"error": ""
}
Environment Variables
AZURE_SPEECH_KEY
: Azure Speech to Text Service Key (Required for Audio Support)AZURE_SPEECH_REGION
: Azure Speech to Text Service Region (Required for Audio Support)