Update app.py
Browse files
app.py
CHANGED
|
@@ -417,14 +417,7 @@ with gr.Blocks(
|
|
| 417 |
```
|
| 418 |
""")
|
| 419 |
|
| 420 |
-
# 事件綁定 -
|
| 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],
|