Resolved unicode errors
This commit is contained in:
parent
f1f03eda56
commit
2708a40f99
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import requests
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import discord
|
import discord
|
||||||
|
import re
|
||||||
|
|
||||||
def create_image(links):
|
def create_image(links):
|
||||||
|
|
||||||
|
@ -27,7 +28,7 @@ async def Generate(prompt, channel, count=2, negativePrompt = "",size="square"):
|
||||||
"isHd": False,
|
"isHd": False,
|
||||||
"steps": 25,
|
"steps": 25,
|
||||||
"cfgScale": 7.5,
|
"cfgScale": 7.5,
|
||||||
"prompt": prompt,
|
"prompt": re.sub(r'\W+', '', prompt),
|
||||||
"style": "anything",
|
"style": "anything",
|
||||||
"layout": size,
|
"layout": size,
|
||||||
"negativePrompt": negativePrompt
|
"negativePrompt": negativePrompt
|
||||||
|
|
Loading…
Reference in a new issue