nickmuchi commited on
Commit
9f56b0a
1 Parent(s): 0d08872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -96,9 +96,9 @@ models = ["facebook/detr-resnet-50","facebook/detr-resnet-101",'hustvl/yolos-sma
96
 
97
  options = gr.Dropdown(choices=models,label='Select Object Detection Model',show_label=True)
98
 
99
- app = gr.blocks()
100
 
101
- with app:
102
  gr.Markdown(title)
103
  gr.Markdown(description)
104
  options
@@ -124,4 +124,4 @@ with app:
124
  img_but.click(detect_objects,inputs=[options,None,img_input,slider_input],outputs=img_output_from_upload,queue=True)
125
 
126
 
127
- app.launch(enable_queue=True)
 
96
 
97
  options = gr.Dropdown(choices=models,label='Select Object Detection Model',show_label=True)
98
 
99
+ demo = gr.blocks()
100
 
101
+ with demo:
102
  gr.Markdown(title)
103
  gr.Markdown(description)
104
  options
 
124
  img_but.click(detect_objects,inputs=[options,None,img_input,slider_input],outputs=img_output_from_upload,queue=True)
125
 
126
 
127
+ demo.launch(enable_queue=True)