Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,10 @@ def transcribe(audio, state=""):
|
|
| 9 |
state += text + " "
|
| 10 |
return state, state
|
| 11 |
|
| 12 |
-
gr.Interface(
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
live=True).launch()
|
|
|
|
| 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.",
|
| 17 |
+
theme="huggingface",
|
| 18 |
+
live=True).launch()
|
|
|