Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,13 +39,13 @@ def update_x(x,y,prompt, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2)
|
|
39 |
avg_diff = [avg_diff_x_1.cuda(), avg_diff_x_2.cuda()]
|
40 |
avg_diff_2nd = [avg_diff_y_1.cuda(), avg_diff_y_2.cuda()]
|
41 |
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8, avg_diff=avg_diff,avg_diff_2nd=avg_diff_2nd)
|
42 |
-
|
43 |
|
44 |
def update_y(x,y,prompt, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2):
|
45 |
avg_diff = [avg_diff_x_1.cuda(), avg_diff_x_2.cuda()]
|
46 |
avg_diff_2nd = [avg_diff_y_1.cuda(), avg_diff_y_2.cuda()]
|
47 |
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8, avg_diff=avg_diff,avg_diff_2nd=avg_diff_2nd)
|
48 |
-
|
49 |
|
50 |
css = '''
|
51 |
#group {
|
|
|
39 |
avg_diff = [avg_diff_x_1.cuda(), avg_diff_x_2.cuda()]
|
40 |
avg_diff_2nd = [avg_diff_y_1.cuda(), avg_diff_y_2.cuda()]
|
41 |
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8, avg_diff=avg_diff,avg_diff_2nd=avg_diff_2nd)
|
42 |
+
return image
|
43 |
|
44 |
def update_y(x,y,prompt, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2):
|
45 |
avg_diff = [avg_diff_x_1.cuda(), avg_diff_x_2.cuda()]
|
46 |
avg_diff_2nd = [avg_diff_y_1.cuda(), avg_diff_y_2.cuda()]
|
47 |
image = clip_slider.generate(prompt, scale=x, scale_2nd=y, num_inference_steps=8, avg_diff=avg_diff,avg_diff_2nd=avg_diff_2nd)
|
48 |
+
return image
|
49 |
|
50 |
css = '''
|
51 |
#group {
|