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