Spaces:
Runtime error
Runtime error
Try single input interface
Browse files
app.py
CHANGED
@@ -118,14 +118,14 @@ description = (
|
|
118 |
)
|
119 |
allow_flagging = "never"
|
120 |
|
121 |
-
microphone = gr.Interface(
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
)
|
129 |
|
130 |
file = gr.Interface(
|
131 |
fn=recognize,
|
@@ -136,6 +136,7 @@ file = gr.Interface(
|
|
136 |
allow_flagging=allow_flagging,
|
137 |
)
|
138 |
|
139 |
-
demo = gr.TabbedInterface([microphone, file], ["Microphone", "Audio file"])
|
140 |
# demo.queue().launch()
|
141 |
-
demo.launch()
|
|
|
|
118 |
)
|
119 |
allow_flagging = "never"
|
120 |
|
121 |
+
# microphone = gr.Interface(
|
122 |
+
# fn=recognize,
|
123 |
+
# inputs=gr.Audio(sources="microphone", type="filepath"),
|
124 |
+
# outputs=outputs,
|
125 |
+
# title=title,
|
126 |
+
# description=description,
|
127 |
+
# allow_flagging=allow_flagging,
|
128 |
+
# )
|
129 |
|
130 |
file = gr.Interface(
|
131 |
fn=recognize,
|
|
|
136 |
allow_flagging=allow_flagging,
|
137 |
)
|
138 |
|
139 |
+
# demo = gr.TabbedInterface([microphone, file], ["Microphone", "Audio file"])
|
140 |
# demo.queue().launch()
|
141 |
+
# demo.launch()
|
142 |
+
file.launch()
|