zhaochaojin commited on
Commit
472f50c
·
1 Parent(s): 0418fbe
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def speech_to_text(audio):
6
 
7
  demo = gr.Interface(
8
  fn=speech_to_text,
9
- inputs=gr.Audio(source="microphone", type="filepath"),
10
  outputs="text",
11
  title="语音转文本演示",
12
  description="请录制一段语音,系统将返回转写文本(目前为默认文本)。"
 
6
 
7
  demo = gr.Interface(
8
  fn=speech_to_text,
9
+ inputs=gr.Audio(sources=["microphone"], type="filepath"),
10
  outputs="text",
11
  title="语音转文本演示",
12
  description="请录制一段语音,系统将返回转写文本(目前为默认文本)。"