Skip to content

fix extract_style_text_from_prompt #15132#15135

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
fix-extract_style_text_from_prompt
Mar 6, 2024
Merged

fix extract_style_text_from_prompt #15132#15135
AUTOMATIC1111 merged 1 commit intodevfrom
fix-extract_style_text_from_prompt

Conversation

@w-e-w
Copy link
Copy Markdown
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

@w-e-w w-e-w requested a review from AUTOMATIC1111 as a code owner March 5, 2024 03:42
@AUTOMATIC1111 AUTOMATIC1111 merged commit 14215be into dev Mar 6, 2024
@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