Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,7 @@ def transcribe(audio, state=""):
|
|
| 9 |
state += text + " "
|
| 10 |
return state, state
|
| 11 |
|
| 12 |
-
gr.Interface(fn=transcribe,
|
| 13 |
-
inputs=[gr.inputs.Audio(source="microphone", type="filepath", label="Record/ Drop audio"), "state"],
|
| 14 |
outputs=["textbox", "state"],
|
| 15 |
title="Automatic Speech Recognition",
|
| 16 |
description="Enable the recognition spoken language into text by computers.",
|
|
|
|
| 9 |
state += text + " "
|
| 10 |
return state, state
|
| 11 |
|
| 12 |
+
gr.Interface(fn=transcribe, inputs=[gr.inputs.Audio(source="microphone", type="filepath", label="Record/ Drop audio"), "state"],
|
|
|
|
| 13 |
outputs=["textbox", "state"],
|
| 14 |
title="Automatic Speech Recognition",
|
| 15 |
description="Enable the recognition spoken language into text by computers.",
|