Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,8 @@ def transcribe_audio(mic=None, file=None):
|
|
| 15 |
|
| 16 |
gr.Interface(
|
| 17 |
fn=transcribe_audio,
|
| 18 |
-
inputs=[gr.Audio(
|
| 19 |
-
gr.Audio(
|
| 20 |
outputs="text",
|
| 21 |
css=".footer{display:none !important}"
|
| 22 |
).launch()
|
|
|
|
| 15 |
|
| 16 |
gr.Interface(
|
| 17 |
fn=transcribe_audio,
|
| 18 |
+
inputs=[gr.Audio(sources="microphone", type="filepath", optional=True),
|
| 19 |
+
gr.Audio(sources="upload", type="filepath", optional=True)],
|
| 20 |
outputs="text",
|
| 21 |
css=".footer{display:none !important}"
|
| 22 |
).launch()
|