Spaces:
Sleeping
Sleeping
Fixed error
Browse files
app.py
CHANGED
|
@@ -246,7 +246,7 @@ mf_transcribe = gr.Interface(
|
|
| 246 |
fn=transcribe,
|
| 247 |
inputs=[
|
| 248 |
#gr.Audio(source="microphone", type="filepath", optional=True),
|
| 249 |
-
gr.Audio(
|
| 250 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 251 |
],
|
| 252 |
outputs="text",
|
|
@@ -264,7 +264,7 @@ mf_transcribe = gr.Interface(
|
|
| 264 |
file_transcribe = gr.Interface(
|
| 265 |
fn=transcribe,
|
| 266 |
inputs=[
|
| 267 |
-
gr.Audio(
|
| 268 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 269 |
],
|
| 270 |
outputs="text",
|
|
|
|
| 246 |
fn=transcribe,
|
| 247 |
inputs=[
|
| 248 |
#gr.Audio(source="microphone", type="filepath", optional=True),
|
| 249 |
+
gr.Audio(sources="microphone", type="filepath", optional=True),
|
| 250 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 251 |
],
|
| 252 |
outputs="text",
|
|
|
|
| 264 |
file_transcribe = gr.Interface(
|
| 265 |
fn=transcribe,
|
| 266 |
inputs=[
|
| 267 |
+
gr.Audio(sources="upload", type="filepath", optional=True, label="Audio file"),
|
| 268 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 269 |
],
|
| 270 |
outputs="text",
|