Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,16 +97,17 @@ def main(model):
|
|
97 |
return predict_rf(input)
|
98 |
|
99 |
|
100 |
-
gr.
|
101 |
-
description="demo for Audio to question classifier",
|
102 |
model = gr.Dropdown(choices=model_names),
|
103 |
-
|
104 |
inputs=[
|
105 |
gr.Audio(sources=["microphone","upload"], type="filepath")
|
106 |
],
|
107 |
outputs=[
|
108 |
"textbox"
|
109 |
],
|
110 |
-
live=True
|
|
|
111 |
|
112 |
-
|
|
|
|
97 |
return predict_rf(input)
|
98 |
|
99 |
|
100 |
+
with gr.Blocks() as demo:
|
|
|
101 |
model = gr.Dropdown(choices=model_names),
|
102 |
+
main,
|
103 |
inputs=[
|
104 |
gr.Audio(sources=["microphone","upload"], type="filepath")
|
105 |
],
|
106 |
outputs=[
|
107 |
"textbox"
|
108 |
],
|
109 |
+
live=True,
|
110 |
+
description="demo for Audio to question classifier"
|
111 |
|
112 |
+
|
113 |
+
demo.launch()
|