Update app.py
Browse files
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)["chunks"] # or ["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}, return_timestamps=True)#["chunks"] # or ["text"]
|
33 |
return text
|
34 |
|
35 |
|