Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
d223295
1
Parent(s):
db4fd47
Update app.py
Browse filesset seed upon image change/image upload
app.py
CHANGED
@@ -729,12 +729,18 @@ with gr.Blocks(css="style.css") as demo:
|
|
729 |
input_image.change(
|
730 |
fn = reset_do_inversion,
|
731 |
outputs = [do_inversion],
|
732 |
-
queue = False)
|
|
|
|
|
|
|
733 |
# Automatically start inverting upon input_image change
|
734 |
input_image.upload(fn = crop_image, inputs = [input_image], outputs = [input_image],queue=False).then(
|
735 |
fn = reset_do_inversion,
|
736 |
outputs = [do_inversion],
|
737 |
-
queue = False).then(
|
|
|
|
|
|
|
738 |
inputs = [input_image],
|
739 |
outputs = [tar_prompt, image_caption]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
740 |
outputs=[inversion_progress],queue=False).then(
|
|
|
729 |
input_image.change(
|
730 |
fn = reset_do_inversion,
|
731 |
outputs = [do_inversion],
|
732 |
+
queue = False).then(
|
733 |
+
fn = randomize_seed_fn,
|
734 |
+
inputs = [seed, randomize_seed],
|
735 |
+
outputs = [seed], queue = False)
|
736 |
# Automatically start inverting upon input_image change
|
737 |
input_image.upload(fn = crop_image, inputs = [input_image], outputs = [input_image],queue=False).then(
|
738 |
fn = reset_do_inversion,
|
739 |
outputs = [do_inversion],
|
740 |
+
queue = False).then(
|
741 |
+
fn = randomize_seed_fn,
|
742 |
+
inputs = [seed, randomize_seed],
|
743 |
+
outputs = [seed], queue = False).then(fn = caption_image,
|
744 |
inputs = [input_image],
|
745 |
outputs = [tar_prompt, image_caption]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
|
746 |
outputs=[inversion_progress],queue=False).then(
|