multimodalart HF staff commited on
Commit
befc654
Β·
verified Β·
1 Parent(s): d96484a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -105,11 +105,10 @@ 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
- print(total_images)
109
  number_images = len(total_images)
110
  if(number_images > 0):
111
  scale_tuple = convert_to_centered_scale(number_images)
112
- return total_images[scale_tuple.index(slider_value)]
113
  else:
114
  return None
115
 
 
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)
111
+ return total_images[scale_tuple.index(slider_value)][0]
112
  else:
113
  return None
114