yichen0403 commited on
Commit
944608e
·
verified ·
1 Parent(s): 740da1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def transcribe(audio):
11
  # 创建 Gradio 接口
12
  demo = gr.Interface(
13
  fn=transcribe,
14
- inputs=gr.Audio(sources="upload", type="auto"),
15
  outputs="text",
16
  title="Japanese Speech Recognition"
17
  )
 
11
  # 创建 Gradio 接口
12
  demo = gr.Interface(
13
  fn=transcribe,
14
+ inputs=gr.Audio(sources="upload", type="filepath"),
15
  outputs="text",
16
  title="Japanese Speech Recognition"
17
  )