not-lain commited on
Commit
b5d1281
·
1 Parent(s): b8354e9
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -174,7 +174,7 @@ def erase(image=None, mask=None):
174
  return simple_lama(image, mask)
175
 
176
 
177
- def transcribe(audio, task="transcribe"):
178
  if audio is None:
179
  raise gr.Error("No audio file submitted!")
180
 
@@ -342,9 +342,8 @@ erase_tab = gr.Interface(
342
  transcribe_tab = gr.Interface(
343
  fn=main,
344
  inputs=[
345
- gr.Number(value=6, visible=False, precision=0), # API number
346
  gr.Audio(type="filepath", label="Audio File"),
347
- gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Task", visible=True),
348
  ],
349
  outputs=gr.Textbox(label="Transcription"),
350
  title="Audio Transcription",
 
174
  return simple_lama(image, mask)
175
 
176
 
177
+ def transcribe(audio):
178
  if audio is None:
179
  raise gr.Error("No audio file submitted!")
180
 
 
342
  transcribe_tab = gr.Interface(
343
  fn=main,
344
  inputs=[
345
+ gr.Number(value=6, interactive=False), # API number
346
  gr.Audio(type="filepath", label="Audio File"),
 
347
  ],
348
  outputs=gr.Textbox(label="Transcription"),
349
  title="Audio Transcription",