wajid commited on
Commit
ef2362d
·
1 Parent(s): 18f962c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -184,8 +184,12 @@ def main(img):
184
 
185
 
186
  import gradio as gr
187
- demo = gr.Interface(fn=main, inputs="image", outputs="json")
188
- demo.launch()
 
 
 
 
189
 
190
 
191
 
 
184
 
185
 
186
  import gradio as gr
187
+
188
+ io = gr.Interface(fn=main, inputs="image", outputs="json")
189
+ gradio_app = gr.routes.App.create_app(io)
190
+
191
+ app.mount(CUSTOM_PATH, gradio_app)
192
+ #demo.launch()
193
 
194
 
195