amos1088 commited on
Commit
fde1fa2
·
1 Parent(s): 6f63764

test gradio

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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((512, 512))
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(