Tonic commited on
Commit
321baae
1 Parent(s): 5290d3e

Update app.py

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