innev commited on
Commit
4a3cbd5
·
1 Parent(s): 66b14fd
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,8 +104,8 @@ gr.Interface(
104
  fn=predict,
105
  inputs=[
106
  gr.Radio(label="目标语言", choices=supportLangs, value="chinese"),
107
- gr.Audio(label="上传语音", source="upload", type="numpy"),
108
- gr.Audio(label="录制语音", source="microphone", type="numpy"),
109
  ],
110
  outputs=[
111
  gr.Text(label="识别出的文字"),
 
104
  fn=predict,
105
  inputs=[
106
  gr.Radio(label="目标语言", choices=supportLangs, value="chinese"),
107
+ gr.Audio(label="上传语音", type="numpy"),
108
+ gr.Audio(label="录制语音", type="numpy"),
109
  ],
110
  outputs=[
111
  gr.Text(label="识别出的文字"),