From b9184fed9ecea1ffd2975a46924120f77a2f8ed2 Mon Sep 17 00:00:00 2001 From: phixxy Date: Fri, 19 Jan 2024 19:02:07 -0800 Subject: [PATCH] temporarily disabled negative_prompt --- plugins/stable_diffusion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/stable_diffusion.py b/plugins/stable_diffusion.py index d59cfcb..22a00f2 100644 --- a/plugins/stable_diffusion.py +++ b/plugins/stable_diffusion.py @@ -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,7 +266,8 @@ 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 = ""''' + negative_prompt = "" await ctx.send("Please be patient this may take some time! Generating: " + prompt + ".")