ar0551 commited on
Commit
89c6fa9
·
verified ·
1 Parent(s): fba8d11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def generate_image(prompt, input_image, low_threshold, high_threshold, strength,
52
  image=edge_detected,
53
  num_inference_steps=30,
54
  guidance_scale=guidance,
55
- controlnet_conditioning_scale=controlnet_conditioning_scale,
56
  strength=strength
57
  ).images[0]
58
 
@@ -83,7 +83,7 @@ with gr.Blocks() as demo:
83
  # 🔗 Button Action
84
  generate_button.click(
85
  fn=generate_image,
86
- inputs=[prompt, input_image, low_threshold, high_threshold, strength, guidance, float(controlnet_conditioning_scale)],
87
  outputs=[edge_output, result_output]
88
  )
89
 
 
52
  image=edge_detected,
53
  num_inference_steps=30,
54
  guidance_scale=guidance,
55
+ controlnet_conditioning_scale=float(controlnet_conditioning_scale),
56
  strength=strength
57
  ).images[0]
58
 
 
83
  # 🔗 Button Action
84
  generate_button.click(
85
  fn=generate_image,
86
+ inputs=[prompt, input_image, low_threshold, high_threshold, strength, guidance, controlnet_conditioning_scale],
87
  outputs=[edge_output, result_output]
88
  )
89