Spaces:
Running
on
Zero
Running
on
Zero
added video validation
Browse files- 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),
|