linoyts HF staff commited on
Commit
eddcfc2
1 Parent(s): 978580d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -113,10 +113,7 @@ 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_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2,
118
- img2img_type = None,
119
- img = None)
120
  avg_diff = (avg_diff_x_1.cuda(), avg_diff_x_2.cuda())
121
  avg_diff_2nd = (avg_diff_y_1.cuda(), avg_diff_y_2.cuda())
122
  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, avg_diff_x_1, avg_diff_x_2, avg_diff_y_1, avg_diff_y_2, img2img_type = None, img = None)
 
 
 
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: