Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#17
by
aqibrehmanmib
- opened
app.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe(inputs, task):
|
|
29 |
if inputs is None:
|
30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
31 |
|
32 |
-
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
33 |
return text
|
34 |
|
35 |
|
|
|
29 |
if inputs is None:
|
30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
31 |
|
32 |
+
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task,"language": "urdu"}, return_timestamps=True)["text"]
|
33 |
return text
|
34 |
|
35 |
|