This commit is contained in:
parent
5da1c089c3
commit
19865f0588
@ -164,9 +164,11 @@ def run():
|
|||||||
async def generate_image(inspiration):
|
async def generate_image(inspiration):
|
||||||
imagine = Imagine()
|
imagine = Imagine()
|
||||||
filename = str(uuid.uuid4()) + ".png"
|
filename = str(uuid.uuid4()) + ".png"
|
||||||
|
print(inspiration)
|
||||||
try:
|
try:
|
||||||
inspiration = Inspiration[inspiration]
|
inspiration = Inspiration[inspiration]
|
||||||
except:
|
except:
|
||||||
|
await bot.api.send_markdown_message(room.room_id, f"{inspiration} cannot be found, using default one")
|
||||||
inspiration = Inspiration.INSPIRATION_01
|
inspiration = Inspiration.INSPIRATION_01
|
||||||
|
|
||||||
img_data = imagine.sdinsp(
|
img_data = imagine.sdinsp(
|
||||||
|
Loading…
Reference in New Issue
Block a user