Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ pipe = pipe.to("cuda")
|
|
23 |
@spaces.GPU
|
24 |
def generate_image(prompt, reference_image,controlnet_conditioning_scale):
|
25 |
# Prepare the reference image for ControlNet
|
26 |
-
reference_image = reference_image.convert("RGB").resize((
|
27 |
|
28 |
# Generate the image with ControlNet conditioning
|
29 |
generated_image = pipe(
|
|
|
23 |
@spaces.GPU
|
24 |
def generate_image(prompt, reference_image,controlnet_conditioning_scale):
|
25 |
# Prepare the reference image for ControlNet
|
26 |
+
reference_image = reference_image.convert("RGB").resize((1024, 1024))
|
27 |
|
28 |
# Generate the image with ControlNet conditioning
|
29 |
generated_image = pipe(
|