ms180 commited on
Commit
6d3b6c8
1 Parent(s): 2189136

Added dependency and fixed bug

Browse files
Files changed (2) hide show
  1. modules/asr_frontend.py +1 -1
  2. requirements.txt +2 -0
modules/asr_frontend.py CHANGED
@@ -8,7 +8,7 @@ from pydantic import BaseModel
8
 
9
 
10
  class AudioInput(BaseModel):
11
- audio: UploadFile = Form()
12
 
13
 
14
  async def audio_from_file(file):
 
8
 
9
 
10
  class AudioInput(BaseModel):
11
+ audio: UploadFile = Form(...)
12
 
13
 
14
  async def audio_from_file(file):
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
  fastapi==0.74.*
2
  requests==2.27.*
3
  uvicorn[standard]==0.17.*
 
 
4
  librosa
5
  espnet_onnx
 
1
  fastapi==0.74.*
2
  requests==2.27.*
3
  uvicorn[standard]==0.17.*
4
+ aiofiles
5
+ python-multipart
6
  librosa
7
  espnet_onnx