hysts HF Staff commited on
Commit
35f4b88
·
1 Parent(s): 0f5f5e9
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -246,10 +246,20 @@ with gr.Blocks(fill_height=False) as demo:
246
  """)
247
 
248
  # Event handlers
249
- transcribe_btn.click(fn=transcribe, inputs=audio, outputs=output, api_name="transcribe")
 
 
 
 
 
250
 
251
  # Auto-transcribe on audio upload (optional - remove if you prefer manual triggering)
252
- audio.change(fn=transcribe, inputs=audio, outputs=output, show_progress="minimal")
 
 
 
 
 
253
 
254
 
255
  if __name__ == "__main__":
 
246
  """)
247
 
248
  # Event handlers
249
+ transcribe_btn.click(
250
+ fn=transcribe,
251
+ inputs=audio,
252
+ outputs=output,
253
+ api_name="transcribe",
254
+ )
255
 
256
  # Auto-transcribe on audio upload (optional - remove if you prefer manual triggering)
257
+ audio.change(
258
+ fn=transcribe,
259
+ inputs=audio,
260
+ outputs=output,
261
+ show_progress="minimal",
262
+ )
263
 
264
 
265
  if __name__ == "__main__":