Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -201,12 +201,25 @@ async def on_message(message):
|
|
| 201 |
e = await message.reply(embed=embed)
|
| 202 |
print(imgp)
|
| 203 |
if imgp != "":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
image = SD.text_to_image(imgp)
|
| 205 |
image.save("image.png")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
image = RF.image_to_image("image.png")
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
|
|
|
| 210 |
image.save("image.png")
|
| 211 |
file = discord.File("image.png", filename="image.png")
|
| 212 |
embed.set_image(url="attachment://image.png")
|
|
|
|
| 201 |
e = await message.reply(embed=embed)
|
| 202 |
print(imgp)
|
| 203 |
if imgp != "":
|
| 204 |
+
embed.set_footer(
|
| 205 |
+
text=
|
| 206 |
+
"""Creating..."""
|
| 207 |
+
)
|
| 208 |
+
await e.edit(embed=embed)
|
| 209 |
image = SD.text_to_image(imgp)
|
| 210 |
image.save("image.png")
|
| 211 |
+
embed.set_footer(
|
| 212 |
+
text=
|
| 213 |
+
"""Refining..."""
|
| 214 |
+
)
|
| 215 |
+
file = discord.File("image.png", filename="image.png")
|
| 216 |
+
embed.set_image(url="attachment://image.png")
|
| 217 |
+
await e.edit(embed=embed, attachments=[file])
|
| 218 |
image = RF.image_to_image("image.png")
|
| 219 |
+
embed.set_footer(
|
| 220 |
+
text=
|
| 221 |
+
"""Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
|
| 222 |
+
)
|
| 223 |
image.save("image.png")
|
| 224 |
file = discord.File("image.png", filename="image.png")
|
| 225 |
embed.set_image(url="attachment://image.png")
|