Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -299,8 +299,10 @@ with gr.Blocks(css=css, head=head) as demo:
|
|
| 299 |
}
|
| 300 |
""")
|
| 301 |
|
|
|
|
|
|
|
| 302 |
example_files = glob.glob('assets/examples/*')
|
| 303 |
-
examples = gr.Examples(examples=example_files, inputs=[input_image
|
| 304 |
|
| 305 |
|
| 306 |
if __name__ == '__main__':
|
|
|
|
| 299 |
}
|
| 300 |
""")
|
| 301 |
|
| 302 |
+
def on_submit_example(image):
|
| 303 |
+
on_submit(image, None, None 'vitl', None, None, -1, True)
|
| 304 |
example_files = glob.glob('assets/examples/*')
|
| 305 |
+
examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[gallery], fn=on_submit_example)
|
| 306 |
|
| 307 |
|
| 308 |
if __name__ == '__main__':
|