Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,6 +181,7 @@ async def on_message(message: discord.Message):
|
|
| 181 |
if i.content_type == "image":
|
| 182 |
Image.open(io.BytesIO(i.read())).save("image.png")
|
| 183 |
ats.append(f"ImageInput:{caption('image.png')}")
|
|
|
|
| 184 |
s = f"GPT4 Correct {message.author}: {message.content} Attachments: {' '.join(ats)}<|end_of_turn|>"
|
| 185 |
try:
|
| 186 |
with open(os.path.join(guild_name, f"{msgchannel_name}.txt"), "a") as f:
|
|
|
|
| 181 |
if i.content_type == "image":
|
| 182 |
Image.open(io.BytesIO(i.read())).save("image.png")
|
| 183 |
ats.append(f"ImageInput:{caption('image.png')}")
|
| 184 |
+
print(caption('image.png'))
|
| 185 |
s = f"GPT4 Correct {message.author}: {message.content} Attachments: {' '.join(ats)}<|end_of_turn|>"
|
| 186 |
try:
|
| 187 |
with open(os.path.join(guild_name, f"{msgchannel_name}.txt"), "a") as f:
|