Spaces:
Sleeping
Sleeping
Fixed gradio calls
Browse files
app.py
CHANGED
|
@@ -245,8 +245,8 @@ demo = gr.Blocks()
|
|
| 245 |
mf_transcribe = gr.Interface(
|
| 246 |
fn=transcribe,
|
| 247 |
inputs=[
|
| 248 |
-
gr.
|
| 249 |
-
gr.
|
| 250 |
],
|
| 251 |
outputs="text",
|
| 252 |
layout="horizontal",
|
|
|
|
| 245 |
mf_transcribe = gr.Interface(
|
| 246 |
fn=transcribe,
|
| 247 |
inputs=[
|
| 248 |
+
gr.Audio(source="microphone", type="filepath", optional=True),
|
| 249 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 250 |
],
|
| 251 |
outputs="text",
|
| 252 |
layout="horizontal",
|