linoyts HF staff commited on
Commit
31f811d
1 Parent(s): 78dd4cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -14,9 +14,7 @@ def generate(slider_x, slider_y, prompt, x_concept_1, x_concept_2, y_concept_1,
14
 
15
  # check if avg diff for directions need to be re-calculated
16
  if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
17
- print(slider_x)
18
  clip_slider.avg_diff = clip_slider.find_latent_direction(slider_x[0], slider_x[1])
19
- print(clip_slider.avg_diff)
20
  x_concept_1, x_concept_2 = slider_x[0], slider_x[1]
21
  if not sorted(slider_y) == sorted([y_concept_1, y_concept_2]):
22
  clip_slider.avg_diff_2nd = clip_slider.find_latent_direction(slider_y[0], slider_y[1])
 
14
 
15
  # check if avg diff for directions need to be re-calculated
16
  if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
 
17
  clip_slider.avg_diff = clip_slider.find_latent_direction(slider_x[0], slider_x[1])
 
18
  x_concept_1, x_concept_2 = slider_x[0], slider_x[1]
19
  if not sorted(slider_y) == sorted([y_concept_1, y_concept_2]):
20
  clip_slider.avg_diff_2nd = clip_slider.find_latent_direction(slider_y[0], slider_y[1])