Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- infer_server.py +3 -3
infer_server.py
CHANGED
@@ -63,7 +63,7 @@ def release_model_semaphore():
|
|
63 |
|
64 |
|
65 |
def recognition(file: File, to_simple: int,
|
66 |
-
remove_pun: int, language: str = "
|
67 |
task: str = "transcribe"
|
68 |
):
|
69 |
|
@@ -85,7 +85,7 @@ def recognition(file: File, to_simple: int,
|
|
85 |
async def api_recognition_stream(
|
86 |
to_simple: int = Body(1, description="", embed=True),
|
87 |
remove_pun: int = Body(0, description="", embed=True),
|
88 |
-
language: str = Body("
|
89 |
task: str = Body("transcribe", description="", embed=True),
|
90 |
audio: UploadFile = File(..., description="")
|
91 |
):
|
@@ -111,7 +111,7 @@ async def api_recognition_stream(
|
|
111 |
async def api_recognition(
|
112 |
to_simple: int = Body(1, description="", embed=True),
|
113 |
remove_pun: int = Body(0, description="", embed=True),
|
114 |
-
language: str = Body("
|
115 |
task: str = Body("transcribe", description="", embed=True),
|
116 |
audio: UploadFile = File(..., description="")
|
117 |
):
|
|
|
63 |
|
64 |
|
65 |
def recognition(file: File, to_simple: int,
|
66 |
+
remove_pun: int, language: str = "bn",
|
67 |
task: str = "transcribe"
|
68 |
):
|
69 |
|
|
|
85 |
async def api_recognition_stream(
|
86 |
to_simple: int = Body(1, description="", embed=True),
|
87 |
remove_pun: int = Body(0, description="", embed=True),
|
88 |
+
language: str = Body("bn", description="", embed=True),
|
89 |
task: str = Body("transcribe", description="", embed=True),
|
90 |
audio: UploadFile = File(..., description="")
|
91 |
):
|
|
|
111 |
async def api_recognition(
|
112 |
to_simple: int = Body(1, description="", embed=True),
|
113 |
remove_pun: int = Body(0, description="", embed=True),
|
114 |
+
language: str = Body("bn", description="", embed=True),
|
115 |
task: str = Body("transcribe", description="", embed=True),
|
116 |
audio: UploadFile = File(..., description="")
|
117 |
):
|