Spaces:
Sleeping
Sleeping
Linoy Tsaban
commited on
Commit
•
bd21a39
1
Parent(s):
966cb16
Update app.py
Browse files
app.py
CHANGED
@@ -635,7 +635,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
635 |
#add_concept_button.click(fn = update_display_concept, inputs=sega_concepts_counter,
|
636 |
# outputs= [row2, row2_advanced, row3, row3_advanced, add_concept_button, sega_concepts_counter], queue = False)
|
637 |
|
638 |
-
run_button.click(fn =
|
639 |
fn=load_and_invert,
|
640 |
inputs=[input_image,
|
641 |
do_inversion,
|
@@ -649,7 +649,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
649 |
tar_cfg_scale
|
650 |
],
|
651 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
652 |
-
).then(fn =
|
653 |
fn=edit,
|
654 |
inputs=[input_image,
|
655 |
wts, zs,
|
|
|
635 |
#add_concept_button.click(fn = update_display_concept, inputs=sega_concepts_counter,
|
636 |
# outputs= [row2, row2_advanced, row3, row3_advanced, add_concept_button, sega_concepts_counter], queue = False)
|
637 |
|
638 |
+
run_button.click(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion], outputs=[inversion_progress],queue=False).then(
|
639 |
fn=load_and_invert,
|
640 |
inputs=[input_image,
|
641 |
do_inversion,
|
|
|
649 |
tar_cfg_scale
|
650 |
],
|
651 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
652 |
+
).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion], outputs=[inversion_progress],queue=False).success(
|
653 |
fn=edit,
|
654 |
inputs=[input_image,
|
655 |
wts, zs,
|