mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 13:58:56 +01:00
[Bug fix] Remove html tags form the Prompt sent to Stable Diffusion (#3151)
This commit is contained in:
parent
6e30f76ba5
commit
23055b21ee
@ -133,6 +133,9 @@ def get_SD_pictures(description, character):
|
||||
if params['manage_VRAM']:
|
||||
give_VRAM_priority('SD')
|
||||
|
||||
description = re.sub('<audio.*?</audio>', ' ', description)
|
||||
description = f"({description}:1)"
|
||||
|
||||
payload = {
|
||||
"prompt": params['prompt_prefix'] + description,
|
||||
"seed": params['seed'],
|
||||
|
Loading…
Reference in New Issue
Block a user