Olivier-Truong commited on
Commit
59330f5
1 Parent(s): a96ba96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -94,7 +94,7 @@ mf_transcribe = gr.Interface(
94
  fn=transcribe,
95
  inputs=[
96
  gr.Audio(sources=["microphone"], type="filepath"),
97
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
98
  ],
99
  outputs="text",
100
  layout="horizontal",
@@ -112,7 +112,7 @@ file_transcribe = gr.Interface(
112
  fn=transcribe,
113
  inputs=[
114
  gr.Audio(sources=["upload"], type="filepath", label="Audio file"),
115
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
116
  ],
117
  outputs="text",
118
  layout="horizontal",
@@ -130,7 +130,7 @@ yt_transcribe = gr.Interface(
130
  fn=yt_transcribe,
131
  inputs=[
132
  gr.Textbox(lines=1, label="YouTube URL"),
133
- gr.Radio(["transcribe", "translate"], label="Task", default="transcribe")
134
  ],
135
  outputs=["html", "text"],
136
  layout="horizontal",
 
94
  fn=transcribe,
95
  inputs=[
96
  gr.Audio(sources=["microphone"], type="filepath"),
97
+ gr.Radio(["transcribe", "translate"], label="Task"),
98
  ],
99
  outputs="text",
100
  layout="horizontal",
 
112
  fn=transcribe,
113
  inputs=[
114
  gr.Audio(sources=["upload"], type="filepath", label="Audio file"),
115
+ gr.Radio(["transcribe", "translate"], label="Task"),
116
  ],
117
  outputs="text",
118
  layout="horizontal",
 
130
  fn=yt_transcribe,
131
  inputs=[
132
  gr.Textbox(lines=1, label="YouTube URL"),
133
+ gr.Radio(["transcribe", "translate"], label="Task")
134
  ],
135
  outputs=["html", "text"],
136
  layout="horizontal",