mirror of
https://github.com/5shekel/stable-diffusion-telegram-bot.git
synced 2024-05-22 19:33:14 +03:00
fix negative prompt
This commit is contained in:
parent
76b529b468
commit
9aaf8aa354
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
*.png
|
*.png
|
||||||
.env
|
.env
|
||||||
*.session
|
.session
|
4
main.py
4
main.py
|
@ -28,7 +28,7 @@ app = Client("stable", api_id=API_ID, api_hash=API_HASH, bot_token=TOKEN)
|
||||||
|
|
||||||
|
|
||||||
def slice_positive_negative(string):
|
def slice_positive_negative(string):
|
||||||
delimiter = "ng"
|
delimiter = "ng:"
|
||||||
if delimiter in string:
|
if delimiter in string:
|
||||||
index = string.index(delimiter)
|
index = string.index(delimiter)
|
||||||
positive = string[:index].rstrip()
|
positive = string[:index].rstrip()
|
||||||
|
@ -43,7 +43,7 @@ def draw(client, message):
|
||||||
msgs = message.text.split(" ", 1)
|
msgs = message.text.split(" ", 1)
|
||||||
if len(msgs) == 1:
|
if len(msgs) == 1:
|
||||||
message.reply_text(
|
message.reply_text(
|
||||||
"Format :\n/draw < text to image >\nng < negative (optional) >"
|
"Format :\n/draw < text to image >\nng: < negative (optional) >"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user