Linoy Tsaban
commited on
Commit
•
0ca7e4d
1
Parent(s):
2a3a808
Update app.py
Browse files
app.py
CHANGED
@@ -496,7 +496,6 @@ with gr.Blocks(css='style.css') as demo:
|
|
496 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
497 |
).then(fn = hide_inversion_progress, outputs=[inversion_progress],queue=False).then(
|
498 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
499 |
-
)
|
500 |
|
501 |
hide_reconstruct_button.click(fn = hide_reconstruction,
|
502 |
outputs=[ddpm_edited_image],
|
@@ -511,16 +510,15 @@ with gr.Blocks(css='style.css') as demo:
|
|
511 |
outputs = [do_inversion], queue = False
|
512 |
).then(
|
513 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
514 |
-
|
515 |
steps.change(fn = reset_do_inversion,
|
516 |
outputs = [do_inversion], queue = False).then(
|
517 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
518 |
-
|
519 |
|
520 |
src_cfg_scale.change(fn = reset_do_inversion,
|
521 |
outputs = [do_inversion], queue = False).then(
|
522 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
523 |
-
)
|
524 |
|
525 |
|
526 |
|
|
|
496 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
497 |
).then(fn = hide_inversion_progress, outputs=[inversion_progress],queue=False).then(
|
498 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
|
|
499 |
|
500 |
hide_reconstruct_button.click(fn = hide_reconstruction,
|
501 |
outputs=[ddpm_edited_image],
|
|
|
510 |
outputs = [do_inversion], queue = False
|
511 |
).then(
|
512 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
513 |
+
|
514 |
steps.change(fn = reset_do_inversion,
|
515 |
outputs = [do_inversion], queue = False).then(
|
516 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
517 |
+
|
518 |
|
519 |
src_cfg_scale.change(fn = reset_do_inversion,
|
520 |
outputs = [do_inversion], queue = False).then(
|
521 |
fn =reset_do_reconstruction, outputs=[reset_do_reconstruction])
|
|
|
522 |
|
523 |
|
524 |
|