Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
100 |
|
101 |
-
with
|
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 |
-
|
|
|
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)
|