Introduction
Introduction Statistics Contact Development Disclaimer Help
Make user prompts the file names. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7a6b94bf228a67936ff160b46c28d3eadf99650a
parent 90fdcb9919fcdec5599230f58058342307c2b413
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 19 Jul 2025 18:40:34 +0200
Make user prompts the file names.
Not doing this will create too many double generations over the long
time.
Diffstat:
M stable-diffusion-emoji | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/stable-diffusion-emoji b/stable-diffusion-emoji
@@ -15,6 +15,15 @@ emojiuribase="gophers://bitreich.org/I/emoji"
emojistr="$@"
emojiprompt="$(printf "%s\n" "${emojistr}" \
| sed 's,^::,,; s,::$,,; s|[-,:=/\.]| |g')"
+
+emojifilebase="$(printf "%s\n" "${emojiprompt}" \
+ | cut -c -64 \
+ | sed "s,',-,g" \
+ | sed "s,?,-,g" \
+ | sed 's, ,-,g')"
+emojifile="${emojifilebase}.png"
+emojiorig="${emojifilebase}.orig"
+
case "${emojiprompt}" in
*beautify*)
emojiprompt="$(stable-diffusion-beautify-prompt "${emojiprompt}")"
@@ -26,15 +35,6 @@ case "${emojiprompt}" in
emojiprompt="${emojiprompt} $(stable-diffusion-prompt-generator "${emo…
;;
esac
-
-emojifilebase="$(printf "%s\n" "${emojiprompt}" \
- | cut -c -64 \
- | sed "s,',-,g" \
- | sed "s,?,-,g" \
- | sed 's, ,-,g')"
-emojifile="${emojifilebase}.png"
-emojiorig="${emojifilebase}.orig"
-
[ -z "${emojiprompt}" ] && exit 1
if [ ! -e "${emojidb}/${emojifile}" ];
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.