Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,8 @@ def infer(prompt):
|
|
29 |
#image = pipe(prompt, init_image=init_image)["sample"][0]
|
30 |
images_list = pipe([prompt] * 1, guidance_scale=7.5, num_inference_steps=25, height=512, width=512) #TODO
|
31 |
images = []
|
32 |
-
safe_image = Image.open(r"unsafe.png")
|
33 |
for i, image in enumerate(images_list["images"]):
|
34 |
-
|
35 |
-
images.append(safe_image)
|
36 |
-
else:
|
37 |
-
images.append(image)
|
38 |
|
39 |
return images
|
40 |
|
|
|
29 |
#image = pipe(prompt, init_image=init_image)["sample"][0]
|
30 |
images_list = pipe([prompt] * 1, guidance_scale=7.5, num_inference_steps=25, height=512, width=512) #TODO
|
31 |
images = []
|
|
|
32 |
for i, image in enumerate(images_list["images"]):
|
33 |
+
images.append(image)
|
|
|
|
|
|
|
34 |
|
35 |
return images
|
36 |
|