xianbao HF staff commited on
Commit
3905399
1 Parent(s): 8d3b8c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ demo = gr.Blocks()
94
  mf_transcribe = gr.Interface(
95
  fn=transcribe,
96
  inputs=[
97
- gr.Audio(source="microphone", type="filepath", optional=True),
98
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
99
  ],
100
  outputs="text",
@@ -112,7 +112,7 @@ mf_transcribe = gr.Interface(
112
  file_transcribe = gr.Interface(
113
  fn=transcribe,
114
  inputs=[
115
- gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
116
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
117
  ],
118
  outputs="text",
 
94
  mf_transcribe = gr.Interface(
95
  fn=transcribe,
96
  inputs=[
97
+ gr.Audio(type="filepath", optional=True),
98
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
99
  ],
100
  outputs="text",
 
112
  file_transcribe = gr.Interface(
113
  fn=transcribe,
114
  inputs=[
115
+ gr.Audio(type="filepath", optional=True, label="Audio file"),
116
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
117
  ],
118
  outputs="text",