Tonic commited on
Commit
da62413
1 Parent(s): 321baae

Update app.py

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