Araeynn commited on
Commit
7aa5741
1 Parent(s): d1fef5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -191,12 +191,13 @@ async def on_message(message):
191
  """Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
192
  )
193
  embed.set_image(load)
194
- e = await message.reply(embed=embed)
195
- image = SD.text_to_image(imgp)
196
- image.save("image.png")
197
- file = discord.File("image.png")
198
- embed.set_image("attachment://image.png")
199
- e.edit(embed=embed, file=file)
 
200
 
201
  except Exception as e:
202
  print(Fore.RED)
 
191
  """Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
192
  )
193
  embed.set_image(load)
194
+ e = await message.reply(embed=embed)
195
+ if imgp != "":
196
+ image = SD.text_to_image(imgp)
197
+ image.save("image.png")
198
+ file = discord.File("image.png")
199
+ embed.set_image("attachment://image.png")
200
+ e.edit(embed=embed, file=file)
201
 
202
  except Exception as e:
203
  print(Fore.RED)