Spaces:
Sleeping
Sleeping
Commit
·
505896c
1
Parent(s):
713bc64
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def transcribe(inputs, task):
|
|
17 |
if inputs is None:
|
18 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
19 |
|
20 |
-
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task":
|
21 |
return text
|
22 |
|
23 |
def transcribelocal(microphone, file_upload):
|
|
|
17 |
if inputs is None:
|
18 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
19 |
|
20 |
+
text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=True)["text"]
|
21 |
return text
|
22 |
|
23 |
def transcribelocal(microphone, file_upload):
|