Spaces:
Sleeping
Sleeping
Linoy Tsaban
commited on
Commit
•
af2b22f
1
Parent(s):
a151f1a
Update app.py
Browse files
app.py
CHANGED
@@ -498,7 +498,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
498 |
max_lines=1, value="", scale=3,
|
499 |
placeholder="Target prompt, DDPM Inversion", info = "Leave blank to have only SEGA concepts guide your edit"
|
500 |
)
|
501 |
-
caption_button = gr.Button("Caption Image", scale=1)
|
502 |
|
503 |
|
504 |
|
@@ -625,11 +625,11 @@ with gr.Blocks(css="style.css") as demo:
|
|
625 |
interactive=True,
|
626 |
info = "Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
|
627 |
|
628 |
-
caption_button.click(
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
)
|
633 |
#neg_guidance_1.change(fn = update_label, inputs=[neg_guidance_1], outputs=[add_1])
|
634 |
#neg_guidance_2.change(fn = update_label, inputs=[neg_guidance_2], outputs=[add_2])
|
635 |
#neg_guidance_3.change(fn = update_label, inputs=[neg_guidance_3], outputs=[add_3])
|
@@ -687,7 +687,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
687 |
input_image.upload(
|
688 |
fn = reset_do_inversion,
|
689 |
outputs = [do_inversion],
|
690 |
-
queue = False).then(fn =
|
|
|
|
|
691 |
outputs=[inversion_progress],queue=False).then(
|
692 |
fn=load_and_invert,
|
693 |
inputs=[input_image,
|
|
|
498 |
max_lines=1, value="", scale=3,
|
499 |
placeholder="Target prompt, DDPM Inversion", info = "Leave blank to have only SEGA concepts guide your edit"
|
500 |
)
|
501 |
+
# caption_button = gr.Button("Caption Image", scale=1)
|
502 |
|
503 |
|
504 |
|
|
|
625 |
interactive=True,
|
626 |
info = "Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
|
627 |
|
628 |
+
# caption_button.click(
|
629 |
+
# fn = caption_image,
|
630 |
+
# inputs = [input_image],
|
631 |
+
# outputs = [tar_prompt]
|
632 |
+
# )
|
633 |
#neg_guidance_1.change(fn = update_label, inputs=[neg_guidance_1], outputs=[add_1])
|
634 |
#neg_guidance_2.change(fn = update_label, inputs=[neg_guidance_2], outputs=[add_2])
|
635 |
#neg_guidance_3.change(fn = update_label, inputs=[neg_guidance_3], outputs=[add_3])
|
|
|
687 |
input_image.upload(
|
688 |
fn = reset_do_inversion,
|
689 |
outputs = [do_inversion],
|
690 |
+
queue = False).then(fn = caption_image,
|
691 |
+
inputs = [input_image],
|
692 |
+
outputs = [tar_prompt]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
693 |
outputs=[inversion_progress],queue=False).then(
|
694 |
fn=load_and_invert,
|
695 |
inputs=[input_image,
|