mrmuminov commited on
Commit
4f729ae
1 Parent(s): 3b5175f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -93,8 +93,8 @@ demo = gr.Blocks()
93
  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",
100
  layout="horizontal",
@@ -111,8 +111,8 @@ mf_transcribe = gr.Interface(
111
  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",
118
  layout="horizontal",
@@ -129,8 +129,8 @@ file_transcribe = gr.Interface(
129
  yt_transcribe = gr.Interface(
130
  fn=yt_transcribe,
131
  inputs=[
132
- gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
133
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
134
  ],
135
  outputs=["html", "text"],
136
  layout="horizontal",
 
93
  mf_transcribe = gr.Interface(
94
  fn=transcribe,
95
  inputs=[
96
+ gr.Audio(source="microphone", type="filepath"),
97
+ gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
98
  ],
99
  outputs="text",
100
  layout="horizontal",
 
111
  file_transcribe = gr.Interface(
112
  fn=transcribe,
113
  inputs=[
114
+ gr.Audio(source="upload", type="filepath", label="Audio file"),
115
+ gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
116
  ],
117
  outputs="text",
118
  layout="horizontal",
 
129
  yt_transcribe = gr.Interface(
130
  fn=yt_transcribe,
131
  inputs=[
132
+ gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
133
+ gr.Radio(["transcribe", "translate"], label="Task", value="transcribe")
134
  ],
135
  outputs=["html", "text"],
136
  layout="horizontal",