Spaces:
Sleeping
Sleeping
Commit
•
44c16da
1
Parent(s):
5290d3e
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def transcribe(inputs, task):
|
|
27 |
if inputs is None:
|
28 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
29 |
|
30 |
-
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)
|
31 |
return text
|
32 |
|
33 |
|
|
|
27 |
if inputs is None:
|
28 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
29 |
|
30 |
+
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)
|
31 |
return text
|
32 |
|
33 |
|