Resolved unicode errors

This commit is contained in:
7trail 2023-08-29 17:15:45 -05:00 committed by GitHub
parent f1f03eda56
commit 2708a40f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import requests
from io import BytesIO
from PIL import Image
import discord
import re
def create_image(links):
@ -27,7 +28,7 @@ async def Generate(prompt, channel, count=2, negativePrompt = "",size="square"):
"isHd": False,
"steps": 25,
"cfgScale": 7.5,
"prompt": prompt,
"prompt": re.sub(r'\W+', '', prompt),
"style": "anything",
"layout": size,
"negativePrompt": negativePrompt