DarwinAnim8or commited on
Commit
a5930e4
·
1 Parent(s): 505896c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": task}, return_timestamps=True)["text"]
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