Ritesh-hf commited on
Commit
078e192
·
verified ·
1 Parent(s): 6882b6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,7 +103,7 @@ def transcribe(input_audio, audio_language, task, timestamp_type):
103
  else:
104
  timestamp_type = "word"
105
 
106
- output = pipe(input_audio, batch_size=BATCH_SIZE, return_timestamps=timestamp_type, generate_kwargs={"task": task})
107
  text = output['text']
108
 
109
  timestamps = format_output_to_list(output['chunks'])
@@ -178,4 +178,4 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
178
 
179
 
180
  if __name__ == "__main__":
181
- demo.launch()
 
103
  else:
104
  timestamp_type = "word"
105
 
106
+ output = pipe(input_audio, return_timestamps=timestamp_type, generate_kwargs={"task": task})
107
  text = output['text']
108
 
109
  timestamps = format_output_to_list(output['chunks'])
 
178
 
179
 
180
  if __name__ == "__main__":
181
+ demo.launch(cache_examples=False)