Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,12 +20,7 @@ def transcribe(audio):
|
|
| 20 |
|
| 21 |
return transcript["text"]
|
| 22 |
|
| 23 |
-
demo = gr.Interface(fn=transcribe,
|
| 24 |
-
inputs=[
|
| 25 |
-
gr.Audio(source="microphone", type="filepath"),
|
| 26 |
-
gr.Text(source="text"),
|
| 27 |
-
outputs="text")
|
| 28 |
-
]
|
| 29 |
|
| 30 |
demo.launch()
|
| 31 |
#demo.launch(share=True)
|
|
|
|
| 20 |
|
| 21 |
return transcript["text"]
|
| 22 |
|
| 23 |
+
demo = gr.Interface(fn=transcribe, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
demo.launch()
|
| 26 |
#demo.launch(share=True)
|