Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -68,6 +68,7 @@ def generate(prompt,
|
|
68 |
progress=gr.Progress()
|
69 |
):
|
70 |
print(f"Prompt: {prompt}, ← {concept_2}, {concept_1} ➡️ . scale {scale}, interm steps {interm_steps}")
|
|
|
71 |
slider_x = [concept_2, concept_1]
|
72 |
# check if avg diff for directions need to be re-calculated
|
73 |
if randomize_seed:
|
@@ -203,7 +204,7 @@ with gr.Blocks(css=css) as demo:
|
|
203 |
inputs=[prompt, concept_1, concept_2, x],
|
204 |
fn=generate,
|
205 |
outputs=[x_concept_1, x_concept_2, avg_diff_x, output_image, image_seq, total_images, post_generation_image, post_generation_slider, seed],
|
206 |
-
cache_examples=
|
207 |
)
|
208 |
|
209 |
submit.click(
|
|
|
68 |
progress=gr.Progress()
|
69 |
):
|
70 |
print(f"Prompt: {prompt}, ← {concept_2}, {concept_1} ➡️ . scale {scale}, interm steps {interm_steps}")
|
71 |
+
|
72 |
slider_x = [concept_2, concept_1]
|
73 |
# check if avg diff for directions need to be re-calculated
|
74 |
if randomize_seed:
|
|
|
204 |
inputs=[prompt, concept_1, concept_2, x],
|
205 |
fn=generate,
|
206 |
outputs=[x_concept_1, x_concept_2, avg_diff_x, output_image, image_seq, total_images, post_generation_image, post_generation_slider, seed],
|
207 |
+
cache_examples=True
|
208 |
)
|
209 |
|
210 |
submit.click(
|