Skip to content

Commit

Permalink
stable-diff: Don't allow to create nsfw content
Browse files Browse the repository at this point in the history
Signed-off-by: Jirka Kremser <[email protected]>
  • Loading branch information
jkremser committed Jun 19, 2024
1 parent f4f6fb4 commit 22b4452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/stable-diffusion/tweaks/consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generate() {
_prompt=$(echo ${_imageRequest} | jq '.prompt')
_count=$(echo ${_imageRequest} | jq 2> /dev/null '.count // 1')
touch ${FLAG_FILE}
python /app/src/app.py --number_of_images "${_count}" --prompt "${_prompt}"
python /app/src/app.py --use_safety_checker --number_of_images "${_count}" --prompt "${_prompt}"
rm -rf ${FLAG_FILE}
echo "Done. Image for ${_imageRequest} has been stored in /app/results."
sleep 1
Expand Down

0 comments on commit 22b4452

Please sign in to comment.