Update app.py
Browse files
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=
|
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"]):
|