Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,12 +34,8 @@ def transcribe_english(audio):
|
|
34 |
|
35 |
demo=gr.Interface(
|
36 |
transcribe_english,
|
37 |
-
inputs=[
|
38 |
-
|
39 |
-
],
|
40 |
-
outputs=[
|
41 |
-
"textbox"
|
42 |
-
],
|
43 |
title="Automatic Speech Recognition",
|
44 |
description = "Demo for Automatic Speech Recognition. Use microphone to record speech. Please press Record button. Initially it will take some time to load the model. The recognized text will appear in the output textbox",
|
45 |
).launch()
|
|
|
34 |
|
35 |
demo=gr.Interface(
|
36 |
transcribe_english,
|
37 |
+
inputs=[gr.Audio(sources=["microphone","upload"], type="filepath")],
|
38 |
+
outputs=["textbox"],
|
|
|
|
|
|
|
|
|
39 |
title="Automatic Speech Recognition",
|
40 |
description = "Demo for Automatic Speech Recognition. Use microphone to record speech. Please press Record button. Initially it will take some time to load the model. The recognized text will appear in the output textbox",
|
41 |
).launch()
|