Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def transcribe(audio):
|
|
| 25 |
# Gradio 界面
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=transcribe,
|
| 28 |
-
inputs=gr.Audio(
|
| 29 |
outputs="text",
|
| 30 |
title="Whisper Transcription for Developers",
|
| 31 |
description="使用 Whisper 和 bigcode 数据集转录开发者相关术语。"
|
|
|
|
| 25 |
# Gradio 界面
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=transcribe,
|
| 28 |
+
inputs=gr.Audio( type="filepath"),
|
| 29 |
outputs="text",
|
| 30 |
title="Whisper Transcription for Developers",
|
| 31 |
description="使用 Whisper 和 bigcode 数据集转录开发者相关术语。"
|