MichaelChou0806 commited on
Commit
dba472f
·
verified ·
1 Parent(s): f317cf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -417,14 +417,7 @@ with gr.Blocks(
417
  ```
418
  """)
419
 
420
- # 事件綁定 - UploadButton 會在選擇檔案時自動觸發
421
- audio_input.upload(
422
- fn=lambda f: os.path.basename(f) if f else "No file",
423
- inputs=audio_input,
424
- outputs=file_display
425
- )
426
-
427
- # 提交按鈕綁定
428
  submit_btn.click(
429
  fn=transcribe_web,
430
  inputs=[password_input, audio_input],
 
417
  ```
418
  """)
419
 
420
+ # 事件綁定 - 只在點擊提交按鈕時處理
 
 
 
 
 
 
 
421
  submit_btn.click(
422
  fn=transcribe_web,
423
  inputs=[password_input, audio_input],