Spaces:
Running
Running
Added dependency and fixed bug
Browse files- modules/asr_frontend.py +1 -1
- 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
|