Skip to content

Commit

Permalink
fix: fix multi loras prompt parse
Browse files Browse the repository at this point in the history
  • Loading branch information
leejet committed Nov 19, 2023
1 parent 176a00b commit 0d9b801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ std::pair<std::unordered_map<std::string, float>, std::string> extract_and_remov
filename2multiplier[filename] += multiplier;
}

text = std::regex_replace(text, re, "");
text = std::regex_replace(text, re, "", std::regex_constants::format_first_only);
}

return std::make_pair(filename2multiplier, text);
Expand Down

0 comments on commit 0d9b801

Please sign in to comment.