Linoy Tsaban
commited on
Commit
·
a46f027
1
Parent(s):
689b49a
Update app.py
Browse files
app.py
CHANGED
|
@@ -647,7 +647,11 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 647 |
# .success(fn=update_gallery_display, inputs= [prev_output_image, sega_edited_image], outputs = [gallery, gallery, prev_output_image])
|
| 648 |
|
| 649 |
|
| 650 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 651 |
# Automatically start inverting upon input_image change
|
| 652 |
input_image.upload(
|
| 653 |
fn = reset_do_inversion,
|
|
|
|
| 647 |
# .success(fn=update_gallery_display, inputs= [prev_output_image, sega_edited_image], outputs = [gallery, gallery, prev_output_image])
|
| 648 |
|
| 649 |
|
| 650 |
+
input_image.change(
|
| 651 |
+
fn = reset_do_inversion,
|
| 652 |
+
inputs = [input_image],
|
| 653 |
+
outputs = [do_inversion],
|
| 654 |
+
queue = False)
|
| 655 |
# Automatically start inverting upon input_image change
|
| 656 |
input_image.upload(
|
| 657 |
fn = reset_do_inversion,
|