Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,9 @@ def generate(slider_x, slider_y, prompt, seed, iterations, steps,
|
|
113 |
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
|
114 |
|
115 |
@spaces.GPU
|
116 |
-
def update_scales(x,y,prompt,seed, steps,
|
|
|
|
|
117 |
avg_diff = (avg_diff_x_1.cuda(), avg_diff_x_2.cuda())
|
118 |
avg_diff_2nd = (avg_diff_y_1.cuda(), avg_diff_y_2.cuda())
|
119 |
if img2img_type=="controlnet canny" and img is not None:
|
|
|
113 |
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
|
114 |
|
115 |
@spaces.GPU
|
116 |
+
def update_scales(x,y,prompt,seed, steps,
|
117 |
+
avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2,
|
118 |
+
img2img_type = None, img = None):
|
119 |
avg_diff = (avg_diff_x_1.cuda(), avg_diff_x_2.cuda())
|
120 |
avg_diff_2nd = (avg_diff_y_1.cuda(), avg_diff_y_2.cuda())
|
121 |
if img2img_type=="controlnet canny" and img is not None:
|