fix
Browse files
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
|
| 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,
|
| 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",
|