VinayHajare commited on
Commit
5d11b07
·
verified ·
1 Parent(s): b113f41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -79,9 +79,9 @@ demo = gr.Blocks()
79
  mic_transcribe = gr.Interface(
80
  fn=transcribe,
81
  inputs=[
82
- gr.inputs.Audio(sources="microphone", type="filepath", optional=True),
83
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
84
- gr.inputs.Checkbox(default=False, label="Return timestamps"),
85
  ],
86
  outputs="text",
87
  layout="horizontal",
@@ -98,9 +98,9 @@ mic_transcribe = gr.Interface(
98
  file_transcribe = gr.Interface(
99
  fn=transcribe,
100
  inputs=[
101
- gr.inputs.Audio(sources="upload", optional=True, label="Audio file", type="filepath"),
102
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
103
- gr.inputs.Checkbox(default=False, label="Return timestamps"),
104
  ],
105
  outputs="text",
106
  layout="horizontal",
@@ -118,9 +118,9 @@ file_transcribe = gr.Interface(
118
  yt_transcribe = gr.Interface(
119
  fn=yt_transcribe,
120
  inputs=[
121
- gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube Video URL"),
122
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
123
- gr.inputs.Checkbox(default=False, label="Return timestamps"),
124
  ],
125
  outputs=["html", "text"],
126
  layout="horizontal",
 
79
  mic_transcribe = gr.Interface(
80
  fn=transcribe,
81
  inputs=[
82
+ gr.Audio(sources="microphone", type="filepath", optional=True),
83
+ gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
84
+ gr.Checkbox(default=False, label="Return timestamps"),
85
  ],
86
  outputs="text",
87
  layout="horizontal",
 
98
  file_transcribe = gr.Interface(
99
  fn=transcribe,
100
  inputs=[
101
+ gr.Audio(sources="upload", optional=True, label="Audio file", type="filepath"),
102
+ gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
103
+ gr.Checkbox(default=False, label="Return timestamps"),
104
  ],
105
  outputs="text",
106
  layout="horizontal",
 
118
  yt_transcribe = gr.Interface(
119
  fn=yt_transcribe,
120
  inputs=[
121
+ gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube Video URL"),
122
+ gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
123
+ gr.Checkbox(default=False, label="Return timestamps"),
124
  ],
125
  outputs=["html", "text"],
126
  layout="horizontal",