Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix extract_style_text_from_prompt #15132 #15135

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

w-e-w
Copy link
Collaborator

@w-e-w w-e-w commented Mar 5, 2024

Description

I belive this is cause by the user have more then one {prompt} in there style,

I am pretty sure that you're not meant to have more then 1 {prompt} so I believe this is a user error

the maxsplit is set to 2 for no reason, I guess this was a minor mistake during initial implementation, since you are unpacking it into 2 vars

I change it to use str.partition() for clarity (and also last I checked partition slightly performs better split)

note

not my lint

@AUTOMATIC1111 AUTOMATIC1111 merged commit 14215be into dev Mar 6, 2024
5 of 6 checks passed
@AUTOMATIC1111 AUTOMATIC1111 deleted the fix-extract_style_text_from_prompt branch March 6, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants