Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def generate_image(prompt, reference_image, controlnet_conditioning_scale):
|
|
47 |
# Generate the image with ControlNet conditioning
|
48 |
generated_image = pipe(
|
49 |
prompt=prompt,
|
50 |
-
|
51 |
adapter_conditioning_scale=controlnet_conditioning_scale,
|
52 |
).images[0]
|
53 |
return generated_image
|
|
|
47 |
# Generate the image with ControlNet conditioning
|
48 |
generated_image = pipe(
|
49 |
prompt=prompt,
|
50 |
+
image=load_image(reference_image),
|
51 |
adapter_conditioning_scale=controlnet_conditioning_scale,
|
52 |
).images[0]
|
53 |
return generated_image
|