Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
| 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 |
|