Skip to content

Commit

Permalink
Fix: Negative prompts now correctly load into the negative prompt tex…
Browse files Browse the repository at this point in the history
…t box from metadata
  • Loading branch information
AbdullahAlfaraj committed Oct 10, 2023
1 parent 22abb3b commit b144b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/sdapi/python_replacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function convertMetadataToJson(metadata_str) {

const settings_json = {}
;[settings_json['prompt'], settings_json['negative_prompt']] =
prompt.split('Negative prompt: ')
prompt.split('Negative prompt: ')

for (const setting of sub_settings) {
let [key, value] = setting.split(':').map((s) => s.trimLeft())
Expand Down

0 comments on commit b144b92

Please sign in to comment.