Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
a910222
1
Parent(s):
c769302
Update app.py
Browse filesauto caption and auto inversion order change
app.py
CHANGED
@@ -559,7 +559,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
559 |
input_image.change(
|
560 |
fn = reset_do_inversion,
|
561 |
outputs = [do_inversion],
|
562 |
-
queue = False).then(fn =
|
|
|
|
|
563 |
outputs=[inversion_progress],queue=False).then(
|
564 |
fn=load_and_invert,
|
565 |
inputs=[input_image,
|
@@ -576,9 +578,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
576 |
# outputs=[ddpm_edited_image, wts, zs, do_inversion],
|
577 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
578 |
).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
579 |
-
outputs=[inversion_progress],queue=False).then(
|
580 |
-
inputs = [input_image],
|
581 |
-
outputs = [tar_prompt]).then(
|
582 |
lambda: reconstruct_button.update(visible=False),
|
583 |
outputs=[reconstruct_button]).then(
|
584 |
fn = reset_do_reconstruction,
|
|
|
559 |
input_image.change(
|
560 |
fn = reset_do_inversion,
|
561 |
outputs = [do_inversion],
|
562 |
+
queue = False).then(fn = caption_image,
|
563 |
+
inputs = [input_image],
|
564 |
+
outputs = [tar_prompt]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
565 |
outputs=[inversion_progress],queue=False).then(
|
566 |
fn=load_and_invert,
|
567 |
inputs=[input_image,
|
|
|
578 |
# outputs=[ddpm_edited_image, wts, zs, do_inversion],
|
579 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
580 |
).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
581 |
+
outputs=[inversion_progress],queue=False).then(
|
|
|
|
|
582 |
lambda: reconstruct_button.update(visible=False),
|
583 |
outputs=[reconstruct_button]).then(
|
584 |
fn = reset_do_reconstruction,
|