Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -185,8 +185,8 @@ def update(files, prompt, top_p=1, temperature=1, model_choice="Qwen/Qwen2.5-Cod
|
|
185 |
files_info = get_files_infos(files)
|
186 |
for file_info in files_info:
|
187 |
if file_info["type"] == "video":
|
188 |
-
if file_info["duration"] >
|
189 |
-
raise gr.Error("Please make sure all videos are less than
|
190 |
if file_info["size"] > 100000000:
|
191 |
raise gr.Error("Please make sure all files are less than 100MB in size.")
|
192 |
|
|
|
185 |
files_info = get_files_infos(files)
|
186 |
for file_info in files_info:
|
187 |
if file_info["type"] == "video":
|
188 |
+
if file_info["duration"] > 180:
|
189 |
+
raise gr.Error("Please make sure all videos are less than 3 minute long.")
|
190 |
if file_info["size"] > 100000000:
|
191 |
raise gr.Error("Please make sure all files are less than 100MB in size.")
|
192 |
|