Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,5 +19,13 @@ def inference_audio(audio):
|
|
19 |
|
20 |
return result.text
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
|
|
|
|
|
19 |
|
20 |
return result.text
|
21 |
|
22 |
+
audio = gr.Audio(
|
23 |
+
label="Input Audio",
|
24 |
+
show_label=False,
|
25 |
+
source="microphone",
|
26 |
+
type="filepath"
|
27 |
+
)
|
28 |
|
29 |
+
|
30 |
+
|
31 |
+
app=gr.Interface(title="Speech to text",fn=inference_audio,inputs=audio, outputs=["text"]).launch(debug = True)
|