Update build_dynamic_prompt.py

fix stupid mistake
This commit is contained in:
AIrjen
2023-09-18 19:12:33 +02:00
parent 743c22495c
commit 8ec0cdb43d
+2 -2
View File
@@ -14,9 +14,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# set seed
# For use in ComfyUI (might bring to Automatic1111 as well)
# lets do it when its lower than 1, to have it work on 0 and -1
# lets do it when its larger than 0
# Otherwise, just do nothing and it will keep on working based on an earlier set seed
if(seed < 1):
if(seed > 0):
random.seed(seed)
# load the config file