Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def generate(concept_1, concept_2, scale, prompt, seed=42, recalc_directions=Tru
|
|
89 |
scale_min = scale_total[0]
|
90 |
scale_max = scale_total[-1]
|
91 |
scale_middle = scale_total.index(0)
|
92 |
-
post_generation_slider_update = gr.update(label=comma_concepts_x, minimum=scale_min, maximum=scale_max, interactive=True)
|
93 |
avg_diff_x = avg_diff.cpu()
|
94 |
|
95 |
return gr.update(label=comma_concepts_x, interactive=True, value=scale), x_concept_1, x_concept_2, avg_diff_x, export_to_gif(images, "clip.gif", fps=5), canvas, images, images[scale_middle], post_generation_slider_update
|
|
|
89 |
scale_min = scale_total[0]
|
90 |
scale_max = scale_total[-1]
|
91 |
scale_middle = scale_total.index(0)
|
92 |
+
post_generation_slider_update = gr.update(label=comma_concepts_x, value=0, minimum=scale_min, maximum=scale_max, interactive=True)
|
93 |
avg_diff_x = avg_diff.cpu()
|
94 |
|
95 |
return gr.update(label=comma_concepts_x, interactive=True, value=scale), x_concept_1, x_concept_2, avg_diff_x, export_to_gif(images, "clip.gif", fps=5), canvas, images, images[scale_middle], post_generation_slider_update
|