BoburAmirov commited on
Commit
91fcc51
·
1 Parent(s): c04ff7f

app file updated

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -124,10 +124,10 @@ demo = gr.Blocks()
124
  mf_transcribe = gr.Interface(
125
  fn=transcribe,
126
  inputs=[
127
- gr.Audio(source="microphone", type="filepath", optional=True),
128
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
129
- gr.Checkbox(label="Return timestamps"),
130
- gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
131
  ],
132
  outputs="text",
133
  layout="horizontal",
@@ -143,10 +143,10 @@ mf_transcribe = gr.Interface(
143
  file_transcribe = gr.Interface(
144
  fn=transcribe,
145
  inputs=[
146
- gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
147
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
148
- gr.Checkbox(label="Return timestamps"),
149
- gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
150
  ],
151
  outputs="text",
152
  layout="horizontal",
@@ -162,10 +162,10 @@ file_transcribe = gr.Interface(
162
  yt_transcribe = gr.Interface(
163
  fn=yt_transcribe,
164
  inputs=[
165
- gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
166
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
167
- gr.Checkbox(label="Return timestamps"),
168
- gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
169
  ],
170
  outputs=["html", "text"],
171
  layout="horizontal",
 
124
  mf_transcribe = gr.Interface(
125
  fn=transcribe,
126
  inputs=[
127
+ gr.inputs.Audio(source="microphone", type="filepath", optional=True),
128
+ gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
129
+ gr.inputs.Checkbox(label="Return timestamps"),
130
+ gr.inputs.Dropdown(choices=["English", "Uzbek"], label="Language"),
131
  ],
132
  outputs="text",
133
  layout="horizontal",
 
143
  file_transcribe = gr.Interface(
144
  fn=transcribe,
145
  inputs=[
146
+ gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
147
+ gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
148
+ gr.inputs.Checkbox(label="Return timestamps"),
149
+ gr.inputs.Dropdown(choices=["English", "Uzbek"], label="Language"),
150
  ],
151
  outputs="text",
152
  layout="horizontal",
 
162
  yt_transcribe = gr.Interface(
163
  fn=yt_transcribe,
164
  inputs=[
165
+ gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
166
+ gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
167
+ gr.inputs.Checkbox(label="Return timestamps"),
168
+ gr.inputs.Dropdown(choices=["English", "Uzbek"], label="Language"),
169
  ],
170
  outputs=["html", "text"],
171
  layout="horizontal",