Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,12 @@ def generate(slider_x, slider_y, prompt, seed, iterations, steps,
|
|
27 |
avg_diff_y_1, avg_diff_y_2):
|
28 |
start_time = time.time()
|
29 |
# check if avg diff for directions need to be re-calculated
|
|
|
|
|
30 |
if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
|
31 |
avg_diff = clip_slider.find_latent_direction(slider_x[0], slider_x[1], num_iterations=iterations)
|
32 |
x_concept_1, x_concept_2 = slider_x[0], slider_x[1]
|
33 |
-
|
34 |
if not sorted(slider_y) == sorted([y_concept_1, y_concept_2]):
|
35 |
avg_diff_2nd = clip_slider.find_latent_direction(slider_y[0], slider_y[1], num_iterations=iterations)
|
36 |
y_concept_1, y_concept_2 = slider_y[0], slider_y[1]
|
|
|
27 |
avg_diff_y_1, avg_diff_y_2):
|
28 |
start_time = time.time()
|
29 |
# check if avg diff for directions need to be re-calculated
|
30 |
+
print("slider_x", slider_x)
|
31 |
+
print("x_concept_1", x_concept_1, "x_concept_2", x_concept_2)
|
32 |
if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
|
33 |
avg_diff = clip_slider.find_latent_direction(slider_x[0], slider_x[1], num_iterations=iterations)
|
34 |
x_concept_1, x_concept_2 = slider_x[0], slider_x[1]
|
35 |
+
print("avg_diff[0].dtype()", avg_diff[0].dtype())
|
36 |
if not sorted(slider_y) == sorted([y_concept_1, y_concept_2]):
|
37 |
avg_diff_2nd = clip_slider.find_latent_direction(slider_y[0], slider_y[1], num_iterations=iterations)
|
38 |
y_concept_1, y_concept_2 = slider_y[0], slider_y[1]
|