Araeynn commited on
Commit
38c97d5
·
verified ·
1 Parent(s): 585ac36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 == "image":
409
  imgCaption = "(ImageParsed: "
410
  images.append(file)
411
- elif file.content_type == "audio":
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: