StevenChen16 commited on
Commit
3a839f6
·
verified ·
1 Parent(s): a8efd5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def transcribe(audio_path):
19
  # 创建Gradio接口
20
  iface = gr.Interface(
21
  fn=transcribe,
22
- inputs=gr.Audio(source="upload", type="filepath"),
23
  outputs="text",
24
  title="WhisperX 语音转文字",
25
  description="上传音频文件,使用WhisperX模型进行转录。"
 
19
  # 创建Gradio接口
20
  iface = gr.Interface(
21
  fn=transcribe,
22
+ inputs=gr.Audio(sources=["upload"], type="filepath")
23
  outputs="text",
24
  title="WhisperX 语音转文字",
25
  description="上传音频文件,使用WhisperX模型进行转录。"