Skip to content

avSDLDS/chatnio-blob-service

 
 

Repository files navigation

chatnio-blob-service

File Service for Chat Nio

Supported File Types

  • Text
  • Image
  • Audio (require Azure Speech to Text Service)
  • Docx
  • Pdf
  • Pptx
  • Xlsx

Run

pip install -r requirements.txt
uvicorn main:app --reload

Then the service will be running on http://localhost:8000

Deploy

uvicorn main:app

API

POST /upload Upload a file

{
    "file": "file"
}

Response

{
  "status": true,
  "content": "...",
  "error": ""
}

Environment Variables

  • AZURE_SPEECH_KEY: Azure Speech to Text Service Key
  • AZURE_SPEECH_REGION: Azure Speech to Text Service Region

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.2%
  • Shell 8.8%