Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -405,10 +405,10 @@ async def on_message(message):
|
|
405 |
audios = []
|
406 |
for file in message.attachments:
|
407 |
print(file.content_type)
|
408 |
-
if file.content_type
|
409 |
imgCaption = "(ImageParsed: "
|
410 |
images.append(file)
|
411 |
-
elif file.content_type
|
412 |
adoCaption = "(AudioParsed: "
|
413 |
audios.append(file)
|
414 |
for image in images:
|
|
|
405 |
audios = []
|
406 |
for file in message.attachments:
|
407 |
print(file.content_type)
|
408 |
+
if file.content_type.startswith("image"):
|
409 |
imgCaption = "(ImageParsed: "
|
410 |
images.append(file)
|
411 |
+
elif file.content_type.startswith("audio"):
|
412 |
adoCaption = "(AudioParsed: "
|
413 |
audios.append(file)
|
414 |
for image in images:
|