Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,10 +14,10 @@ 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 |
-
clip_slider.avg_diff = clip_slider.find_latent_direction(slider_x[0], slider_x[
|
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[
|
21 |
y_concept_1, y_concept_2 = slider_y[0], slider_y[1]
|
22 |
|
23 |
comma_concepts_x = ', '.join(slider_x)
|
|
|
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])
|
21 |
y_concept_1, y_concept_2 = slider_y[0], slider_y[1]
|
22 |
|
23 |
comma_concepts_x = ', '.join(slider_x)
|