Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -82,12 +82,6 @@ client = discord.Client(intents=intents)
|
|
82 |
|
83 |
launch_time = datetime.datetime.utcnow()
|
84 |
|
85 |
-
def tti(p):
|
86 |
-
SD.text_to_image(p)
|
87 |
-
|
88 |
-
def iti(p):
|
89 |
-
RF.image_to_image(p)
|
90 |
-
|
91 |
@client.event
|
92 |
async def on_ready():
|
93 |
if clone:
|
@@ -212,7 +206,7 @@ async def on_message(message):
|
|
212 |
e = await message.reply(embed=embed)
|
213 |
print(imgp)
|
214 |
if imgp != "":
|
215 |
-
image =
|
216 |
image.save("image.png")
|
217 |
embed.set_footer(
|
218 |
text=
|
@@ -221,7 +215,7 @@ async def on_message(message):
|
|
221 |
file = discord.File("image.png", filename="image.png")
|
222 |
embed.set_image(url="attachment://image.png")
|
223 |
await e.edit(embed=embed, attachments=[file])
|
224 |
-
image =
|
225 |
embed.set_footer(
|
226 |
text=
|
227 |
"""Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
|
|
|
82 |
|
83 |
launch_time = datetime.datetime.utcnow()
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
@client.event
|
86 |
async def on_ready():
|
87 |
if clone:
|
|
|
206 |
e = await message.reply(embed=embed)
|
207 |
print(imgp)
|
208 |
if imgp != "":
|
209 |
+
image = SD.text_to_image(imgp)
|
210 |
image.save("image.png")
|
211 |
embed.set_footer(
|
212 |
text=
|
|
|
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."""
|