Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -285,7 +285,7 @@ with gr.Blocks(css=css, head=head) as demo:
|
|
| 285 |
on_submit,
|
| 286 |
inputs=[input_image, batch_images, book, model_size, upscale_model, upscale_method, denoise_level, discard_alpha],
|
| 287 |
outputs=[gallery]
|
| 288 |
-
).
|
| 289 |
|
| 290 |
depthiness.change(fn=None, inputs=depthiness, js="(value) => updateHologram (value, 'depthiness')")
|
| 291 |
focus.change(fn=None, inputs=focus, js="(value) => updateHologram (value, 'focus')")
|
|
@@ -303,7 +303,7 @@ with gr.Blocks(css=css, head=head) as demo:
|
|
| 303 |
return 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__':
|
| 309 |
demo.queue().launch()
|
|
|
|
| 285 |
on_submit,
|
| 286 |
inputs=[input_image, batch_images, book, model_size, upscale_model, upscale_method, denoise_level, discard_alpha],
|
| 287 |
outputs=[gallery]
|
| 288 |
+
).success(fn=zip_gallery, inputs=gallery, outputs=download_btn).then(fn=None, js="castHologram")
|
| 289 |
|
| 290 |
depthiness.change(fn=None, inputs=depthiness, js="(value) => updateHologram (value, 'depthiness')")
|
| 291 |
focus.change(fn=None, inputs=focus, js="(value) => updateHologram (value, 'focus')")
|
|
|
|
| 303 |
return 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 |
+
examples.load_input_event.success(fn=None, js="castHologram")
|
| 307 |
|
| 308 |
if __name__ == '__main__':
|
| 309 |
demo.queue().launch()
|