rbcurzon_laptop commited on
Commit
fb9ad54
·
1 Parent(s): 29a2754

Update requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -201,7 +201,7 @@ def transcribe(inputs, task):
201
  if inputs is None:
202
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
203
 
204
- text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
205
  return text
206
 
207
  demo = gr.Blocks()
 
201
  if inputs is None:
202
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
203
 
204
+ text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task, "language": "tagalog"}, return_timestamps=True)["text"]
205
  return text
206
 
207
  demo = gr.Blocks()
requirements.txt CHANGED
@@ -14,4 +14,5 @@ pydub
14
  silero-vad
15
  scipy
16
  numpy
17
- ipython
 
 
14
  silero-vad
15
  scipy
16
  numpy
17
+ ipython
18
+ gradio