ttt-tkmr commited on
Commit
e90456c
1 Parent(s): f2c270a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -97,16 +97,17 @@ def main(model):
97
  return predict_rf(input)
98
 
99
 
100
- gr.Interface(
101
- description="demo for Audio to question classifier",
102
  model = gr.Dropdown(choices=model_names),
103
- fn = main,
104
  inputs=[
105
  gr.Audio(sources=["microphone","upload"], type="filepath")
106
  ],
107
  outputs=[
108
  "textbox"
109
  ],
110
- live=True
 
111
 
112
- ).launch(debug=True)
 
 
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()