Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
d96484a
1
Parent(s):
40eaef2
Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,7 @@ def generate(prompt,
|
|
105 |
return 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, seed
|
106 |
|
107 |
def update_pre_generated_images(slider_value, total_images):
|
|
|
108 |
number_images = len(total_images)
|
109 |
if(number_images > 0):
|
110 |
scale_tuple = convert_to_centered_scale(number_images)
|
@@ -145,7 +146,7 @@ with gr.Blocks(css=css) as demo:
|
|
145 |
|
146 |
x_concept_1 = gr.State("")
|
147 |
x_concept_2 = gr.State("")
|
148 |
-
total_images = gr.Gallery()
|
149 |
|
150 |
avg_diff_x = gr.State()
|
151 |
|
|
|
105 |
return 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, seed
|
106 |
|
107 |
def update_pre_generated_images(slider_value, total_images):
|
108 |
+
print(total_images)
|
109 |
number_images = len(total_images)
|
110 |
if(number_images > 0):
|
111 |
scale_tuple = convert_to_centered_scale(number_images)
|
|
|
146 |
|
147 |
x_concept_1 = gr.State("")
|
148 |
x_concept_2 = gr.State("")
|
149 |
+
total_images = gr.Gallery(visible=False)
|
150 |
|
151 |
avg_diff_x = gr.State()
|
152 |
|