Update app.py
Browse files
app.py
CHANGED
@@ -135,10 +135,10 @@ with demo:
|
|
135 |
|
136 |
with gr.Row():
|
137 |
example_images = gr.Dataset(components=[img_input],
|
138 |
-
samples=[[path.as_posix() for path in sorted(pathlib.Path('images').rglob('*.JPG'))]
|
139 |
-
|
140 |
|
141 |
-
|
142 |
|
143 |
|
144 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=img_output_from_url,queue=True)
|
|
|
135 |
|
136 |
with gr.Row():
|
137 |
example_images = gr.Dataset(components=[img_input],
|
138 |
+
samples=[[path.as_posix() for path in sorted(pathlib.Path('images').rglob('*.JPG'))])
|
139 |
+
|
140 |
|
141 |
+
img_but = gr.Button('Detect')
|
142 |
|
143 |
|
144 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=img_output_from_url,queue=True)
|