mrestrepo commited on
Commit
889b1a0
·
1 Parent(s): 201660d

No resize iamge

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ MAX_IMAGE_SIZE = 1024
24
  @spaces.GPU
25
  def infer(prompt, refer_image, height, width):
26
 
27
- init_image = refer_image.resize((1024, 1024))
28
 
29
  image = pipeline(
30
  prompt=prompt,
@@ -32,7 +32,7 @@ def infer(prompt, refer_image, height, width):
32
  # num_inference_steps=num_inference_steps,
33
  width=width,
34
  height=height,
35
- image=init_image
36
  # generator=generator
37
  ).images[0]
38
 
 
24
  @spaces.GPU
25
  def infer(prompt, refer_image, height, width):
26
 
27
+ # init_image = refer_image.resize((1024, 1024))
28
 
29
  image = pipeline(
30
  prompt=prompt,
 
32
  # num_inference_steps=num_inference_steps,
33
  width=width,
34
  height=height,
35
+ image=refer_image
36
  # generator=generator
37
  ).images[0]
38