Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 638 Bytes

README.md

File metadata and controls

46 lines (38 loc) · 638 Bytes

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