Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def generate_image(prompt, reference_image, controlnet_conditioning_scale):
|
|
37 |
# Generate the image with ControlNet conditioning
|
38 |
generated_image = pipe(
|
39 |
prompt=prompt,
|
40 |
-
|
41 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
42 |
).images[0]
|
43 |
return generated_image
|
|
|
37 |
# Generate the image with ControlNet conditioning
|
38 |
generated_image = pipe(
|
39 |
prompt=prompt,
|
40 |
+
ip_adapter_image=load_image(reference_image),
|
41 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
42 |
).images[0]
|
43 |
return generated_image
|