Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 =
|
32 |
-
avg_diff_x_2 =
|
33 |
-
avg_diff_y_1 =
|
34 |
-
avg_diff_y_2 =
|
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 |
|