Linoy Tsaban
commited on
Commit
•
cf27ed0
1
Parent(s):
35080c5
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,9 @@ def edit(input_image,
|
|
145 |
num_inference_steps=steps,
|
146 |
use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
|
147 |
|
148 |
-
return sega_out.images[0], reconstruct_button.update(visible=True)
|
|
|
|
|
149 |
|
150 |
|
151 |
|
@@ -444,8 +446,9 @@ with gr.Blocks(css='style.css') as demo:
|
|
444 |
threshold_1, threshold_2, threshold_3
|
445 |
|
446 |
],
|
447 |
-
outputs=[sega_edited_image, reconstruct_button]
|
448 |
-
|
|
|
449 |
fn =reset_do_reconstruction, outputs=[do_reconstruction]
|
450 |
)
|
451 |
|
|
|
145 |
num_inference_steps=steps,
|
146 |
use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
|
147 |
|
148 |
+
# return sega_out.images[0], reconstruct_button.update(visible=True)
|
149 |
+
return sega_out.images[0]
|
150 |
+
|
151 |
|
152 |
|
153 |
|
|
|
446 |
threshold_1, threshold_2, threshold_3
|
447 |
|
448 |
],
|
449 |
+
# outputs=[sega_edited_image, reconstruct_button]
|
450 |
+
outputs=[sega_edited_image]
|
451 |
+
).then(fn=show_reconstruction_button, outputs[reconstruct_button]).then(
|
452 |
fn =reset_do_reconstruction, outputs=[do_reconstruction]
|
453 |
)
|
454 |
|