mfranzon commited on
Commit
ea8b22d
·
1 Parent(s): 0f8c13f

fix main and utils

Browse files
Files changed (2) hide show
  1. main.py +1 -2
  2. utils.py +1 -1
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
- st.success("Image is ready!")
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).images
25
  return images
 
21
  init_image=init_image,
22
  strength=strength,
23
  guidance_scale=7.5,
24
+ num_inference_steps=50)
25
  return images