Skip to content

Commit

Permalink
Merge pull request #30 from jkremser/use_safety_checker
Browse files Browse the repository at this point in the history
stable-diff: Don't allow to create nsfw content
  • Loading branch information
rodebrahimi committed Jun 19, 2024
2 parents f4f6fb4 + 22b4452 commit c91b721
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 c91b721

Please sign in to comment.