Update app.py
Browse files
app.py
CHANGED
@@ -47,10 +47,22 @@ def transcribe(audio):
|
|
47 |
return converted_text
|
48 |
|
49 |
|
50 |
-
demo = gr.Interface(
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
)
|
55 |
|
56 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
return converted_text
|
48 |
|
49 |
|
50 |
+
# demo = gr.Interface(
|
51 |
+
# transcribe,
|
52 |
+
# gr.Audio(sources="microphone", type="filepath"),
|
53 |
+
# "text",
|
54 |
+
# )
|
55 |
|
56 |
+
# demo.launch()
|
57 |
+
|
58 |
+
demo=gr.Interface(
|
59 |
+
|
60 |
+
inputs=[
|
61 |
+
gr.Audio(sources=["microphone","upload"], type="filepath"),
|
62 |
+
],
|
63 |
+
outputs=[
|
64 |
+
"textbox"
|
65 |
+
],
|
66 |
+
title="Automatic Speech Recognition",
|
67 |
+
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",
|
68 |
+
).launch()
|