[Bug fix] Remove html tags form the Prompt sent to Stable Diffusion (#3151)
This commit is contained in:
parent
6e30f76ba5
commit
23055b21ee
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ def get_SD_pictures(description, character):
|
||||||
if params['manage_VRAM']:
|
if params['manage_VRAM']:
|
||||||
give_VRAM_priority('SD')
|
give_VRAM_priority('SD')
|
||||||
|
|
||||||
|
description = re.sub('<audio.*?</audio>', ' ', description)
|
||||||
|
description = f"({description}:1)"
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
"prompt": params['prompt_prefix'] + description,
|
"prompt": params['prompt_prefix'] + description,
|
||||||
"seed": params['seed'],
|
"seed": params['seed'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue