linoyts HF staff commited on
Commit
0c5d517
1 Parent(s): 4b0fbd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -28,10 +28,10 @@ def generate(slider_x, slider_y, prompt,
28
  comma_concepts_x = ', '.join(slider_x)
29
  comma_concepts_y = ', '.join(slider_y)
30
 
31
- avg_diff_x_1 = clip_slider.avg_diff[0].cpu()
32
- avg_diff_x_2 = clip_slider.avg_diff[1].cpu()
33
- avg_diff_y_1 = clip_slider.avg_diff_2nd[0].cpu()
34
- avg_diff_y_2 = clip_slider.avg_diff_2nd[1].cpu()
35
 
36
  return gr.update(label=comma_concepts_x, interactive=True),gr.update(label=comma_concepts_y, interactive=True), x_concept_1, x_concept_2, y_concept_1, y_concept_2, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2, image
37
 
 
28
  comma_concepts_x = ', '.join(slider_x)
29
  comma_concepts_y = ', '.join(slider_y)
30
 
31
+ avg_diff_x_1 = avg_diff[0].cpu()
32
+ avg_diff_x_2 = avg_diff[1].cpu()
33
+ avg_diff_y_1 = avg_diff_2nd[0].cpu()
34
+ avg_diff_y_2 = avg_diff_2nd[1].cpu()
35
 
36
  return gr.update(label=comma_concepts_x, interactive=True),gr.update(label=comma_concepts_y, interactive=True), x_concept_1, x_concept_2, y_concept_1, y_concept_2, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2, image
37