fffiloni commited on
Commit
b1a540c
1 Parent(s): 2189810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -24,8 +24,6 @@ source_img = gr.Image(source="upload", type="filepath", label="init_img", shape=
24
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
25
 
26
  def infer(prompt, init_image):
27
- print(init_image)
28
- init_image = Image.open(init_image)
29
  init_image.resize((768, 512))
30
  #image = pipe(prompt, init_image=init_image)["sample"][0]
31
  images_list = pipe([prompt] * 2, init_image=init_image, strength=0.75)
 
24
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
25
 
26
  def infer(prompt, init_image):
 
 
27
  init_image.resize((768, 512))
28
  #image = pipe(prompt, init_image=init_image)["sample"][0]
29
  images_list = pipe([prompt] * 2, init_image=init_image, strength=0.75)