Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -166,8 +166,8 @@ async def on_message(message):
|
|
166 |
pass
|
167 |
caption = ""
|
168 |
if len(message.attachments) > 0:
|
169 |
-
await message.attachments[0].save('ip')
|
170 |
-
caption = f"(ImageParsed:[{await C.image_to_text('ip')}])"
|
171 |
if os.path.exists(f"data/{guild_name}/{msgchannel_name}"):
|
172 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
173 |
n = "\n"
|
|
|
166 |
pass
|
167 |
caption = ""
|
168 |
if len(message.attachments) > 0:
|
169 |
+
await message.attachments[0].save('ip.png')
|
170 |
+
caption = f"(ImageParsed:[{await C.image_to_text('ip.png')}])"
|
171 |
if os.path.exists(f"data/{guild_name}/{msgchannel_name}"):
|
172 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
173 |
n = "\n"
|