linoyts HF staff commited on
Commit
4b0fbd1
β€’
1 Parent(s): 6ef419c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- 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 {
 
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 {