fffiloni commited on
Commit
b152191
1 Parent(s): 0d392da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def infer(prompt, init_image):
27
  init_image = Image.open(BytesIO(init_image)).convert("RGB")
28
  init_image = init_image.resize((768, 512))
29
  #image = pipe(prompt, init_image=init_image)["sample"][0]
30
- images_list = pipe([prompt] * 2, init_image="init_image.png", strength=0.75)
31
  images = []
32
  safe_image = Image.open(r"unsafe.png")
33
  for i, image in enumerate(images_list["sample"]):
 
27
  init_image = Image.open(BytesIO(init_image)).convert("RGB")
28
  init_image = init_image.resize((768, 512))
29
  #image = pipe(prompt, init_image=init_image)["sample"][0]
30
+ images_list = pipe([prompt] * 2, init_image=init_image, strength=0.75)
31
  images = []
32
  safe_image = Image.open(r"unsafe.png")
33
  for i, image in enumerate(images_list["sample"]):