waloneai commited on
Commit
8da4886
·
verified ·
1 Parent(s): 7f8bf50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"] > 120:
189
- raise gr.Error("Please make sure all videos are less than 2 minute long.")
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