Spaces:
Sleeping
Sleeping
Commit
·
a5930e4
1
Parent(s):
505896c
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def transcribelocal(microphone, file_upload):
|
|
27 |
else:
|
28 |
audio = file_upload
|
29 |
|
30 |
-
text = pipe(audio, batch_size=BATCH_SIZE, generate_kwargs={"task":
|
31 |
return text
|
32 |
|
33 |
# Create a Gradio interface with two modes: realtime and file upload
|
|
|
27 |
else:
|
28 |
audio = file_upload
|
29 |
|
30 |
+
text = pipe(audio, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=True)["text"]
|
31 |
return text
|
32 |
|
33 |
# Create a Gradio interface with two modes: realtime and file upload
|