AC2513 commited on
Commit
f762406
·
1 Parent(s): bd80f38

added video validation

Browse files
Files changed (1) hide show
  1. src/app.py +1 -1
src/app.py CHANGED
@@ -80,7 +80,7 @@ def process_user_input(message: dict, max_images: int) -> list[dict]:
80
  if not message["files"]:
81
  return [{"type": "text", "text": message["text"]}]
82
 
83
- if message["files"][0].endswith(".mp4"):
84
  return [
85
  {"type": "text", "text": message["text"]},
86
  *process_video(message["files"][0], max_images),
 
80
  if not message["files"]:
81
  return [{"type": "text", "text": message["text"]}]
82
 
83
+ if message["files"][0].endswith(".mp4") or message["files"][0].endswith(".mov"):
84
  return [
85
  {"type": "text", "text": message["text"]},
86
  *process_video(message["files"][0], max_images),