Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,16 +23,16 @@ def generate(slider_x, slider_y, prompt, x_concept_1, x_concept_2, y_concept_1,
|
|
23 |
comma_concepts_x = ', '.join(slider_x)
|
24 |
comma_concepts_y = ', '.join(slider_y)
|
25 |
|
26 |
-
image = clip_slider(prompt, scale=0, scale_2nd=0, num_inference_steps=8)
|
27 |
|
28 |
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, image
|
29 |
|
30 |
def update_x(x,y,prompt):
|
31 |
-
image = clip_slider(prompt, scale=x, scale_2nd=y, num_inference_steps=8)
|
32 |
return image
|
33 |
|
34 |
def update_y(x,y,prompt):
|
35 |
-
image = clip_slider(prompt, scale=x, scale_2nd=y, num_inference_steps=8)
|
36 |
return image
|
37 |
|
38 |
css = '''
|
|
|
23 |
comma_concepts_x = ', '.join(slider_x)
|
24 |
comma_concepts_y = ', '.join(slider_y)
|
25 |
|
26 |
+
image = clip_slider.generate(prompt, scale=0, scale_2nd=0, num_inference_steps=8)
|
27 |
|
28 |
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, image
|
29 |
|
30 |
def update_x(x,y,prompt):
|
31 |
+
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8)
|
32 |
return image
|
33 |
|
34 |
def update_y(x,y,prompt):
|
35 |
+
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8)
|
36 |
return image
|
37 |
|
38 |
css = '''
|