temporarily disabled negative_prompt

This commit is contained in:
phixxy 2024-01-19 19:02:07 -08:00
parent de7f03bb58
commit b9184fed9e

View file

@ -257,6 +257,7 @@ class StableDiffusion(commands.Cog):
url=f"{url}/sdapi/v1/txt2img"
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
key_value_pairs, prompt = self.extract_key_value_pairs(prompt)
'''
try:
neg_prompt_file = f"{self.db_dir}negative_prompt.txt"
with open(neg_prompt_file, 'r') as f:
@ -265,6 +266,7 @@ class StableDiffusion(commands.Cog):
neg_prompt_file = f"{self.db_dir}negative_prompt.txt"
with open(neg_prompt_file, 'w') as f:
f.writelines("")
negative_prompt = ""'''
negative_prompt = ""
await ctx.send("Please be patient this may take some time! Generating: " + prompt + ".")