Skip to content

Does "<" work with this version? #59

Discussion options

You must be logged in to vote

I did it yay.

This is the code I have in the run function within the main class inside root->extensions->inspiration->scripts

It takes uses the first word of the inspiration.txt file as the folder name (it removes any illegal symbols and changes them to _)
then it takes the full prompt and uses that to generate the inspiration images.

for example:

dog
cat, woman, balcony
<lora:lion:1>, jungle, masterpiece
?????????pie???????????, curious

would make the folders

dog
cat
_lora_lion_1_
_________pie_________

Should work as the new run command.

       def run(self, p, prompt_placeholder, files):
        if not re.search(prompt_placeholder, p.prompt):
            raise Exception("Missing " + p…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@AlUlkesh
Comment options

@Mistborn-First-Era
Comment options

@AlUlkesh
Comment options

Comment options

You must be logged in to vote
1 reply
@AlUlkesh
Comment options

Answer selected by Mistborn-First-Era
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants