Spaces:
Runtime error
Runtime error
fix main and utils
Browse files
main.py
CHANGED
|
@@ -68,8 +68,7 @@ if st.button('Submit'):
|
|
| 68 |
images = pipe_image(prompt=prompt,
|
| 69 |
init_image=comp_img,
|
| 70 |
strength=strength)
|
| 71 |
-
|
| 72 |
-
if images["nsfw_content_detected"][0]:
|
| 73 |
st.write("NSFW content detected, retry with another prompt or image")
|
| 74 |
for image in images:
|
| 75 |
st.image(image)
|
|
|
|
| 68 |
images = pipe_image(prompt=prompt,
|
| 69 |
init_image=comp_img,
|
| 70 |
strength=strength)
|
| 71 |
+
if images["nsfw_content_detected"]:
|
|
|
|
| 72 |
st.write("NSFW content detected, retry with another prompt or image")
|
| 73 |
for image in images:
|
| 74 |
st.image(image)
|
utils.py
CHANGED
|
@@ -21,5 +21,5 @@ def pipe_image(prompt,
|
|
| 21 |
init_image=init_image,
|
| 22 |
strength=strength,
|
| 23 |
guidance_scale=7.5,
|
| 24 |
-
num_inference_steps=50)
|
| 25 |
return images
|
|
|
|
| 21 |
init_image=init_image,
|
| 22 |
strength=strength,
|
| 23 |
guidance_scale=7.5,
|
| 24 |
+
num_inference_steps=50)
|
| 25 |
return images
|