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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -79,9 +79,9 @@ demo = gr.Blocks()
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,9 +98,9 @@ mic_transcribe = gr.Interface(
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",
@@ -119,8 +119,8 @@ 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",
 
79
  mic_transcribe = gr.Interface(
80
  fn=transcribe,
81
  inputs=[
82
+ gr.Audio(sources="microphone", type="filepath"),
83
+ gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
84
+ gr.Checkbox(value=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", label="Audio file", type="filepath"),
102
+ gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
103
+ gr.Checkbox(value=False, label="Return timestamps"),
104
  ],
105
  outputs="text",
106
  layout="horizontal",
 
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", value="transcribe"),
123
+ gr.Checkbox(value=False, label="Return timestamps"),
124
  ],
125
  outputs=["html", "text"],
126
  layout="horizontal",