temporarily disabled negative_prompt
This commit is contained in:
parent
de7f03bb58
commit
b9184fed9e
1 changed files with 3 additions and 1 deletions
|
|
@ -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 + ".")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue