Surrendra commited on
Commit
a0d0f33
·
verified ·
1 Parent(s): ca307d2

Fixed changes for the latest Gradio

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -263,8 +263,8 @@ mf_transcribe = gr.Interface(
263
  file_transcribe = gr.Interface(
264
  fn=transcribe,
265
  inputs=[
266
- gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
267
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
268
  ],
269
  outputs="text",
270
  layout="horizontal",
@@ -281,8 +281,8 @@ file_transcribe = gr.Interface(
281
  yt_transcribe = gr.Interface(
282
  fn=yt_transcribe,
283
  inputs=[
284
- gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
285
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
286
  ],
287
  outputs=["html", "text"],
288
  layout="horizontal",
 
263
  file_transcribe = gr.Interface(
264
  fn=transcribe,
265
  inputs=[
266
+ gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
267
+ gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
268
  ],
269
  outputs="text",
270
  layout="horizontal",
 
281
  yt_transcribe = gr.Interface(
282
  fn=yt_transcribe,
283
  inputs=[
284
+ gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
285
+ gr.Radio(["transcribe", "translate"], label="Task", default="transcribe")
286
  ],
287
  outputs=["html", "text"],
288
  layout="horizontal",