Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -410,8 +410,8 @@ def update(
|
|
410 |
if not file_info.get("error"): # Only check valid files
|
411 |
if "size" in file_info and file_info["size"] > 1024 * 1024 * 1024: # 150MB limit
|
412 |
raise gr.Error(f"File '{file_info.get('original_name')}' ({file_info['size'] / (1024*1024):.1f}MB) exceeds the 150MB size limit.")
|
413 |
-
|
414 |
-
|
415 |
|
416 |
# --- Get FFMPEG Command from AI ---
|
417 |
command_string = None
|
|
|
410 |
if not file_info.get("error"): # Only check valid files
|
411 |
if "size" in file_info and file_info["size"] > 1024 * 1024 * 1024: # 150MB limit
|
412 |
raise gr.Error(f"File '{file_info.get('original_name')}' ({file_info['size'] / (1024*1024):.1f}MB) exceeds the 150MB size limit.")
|
413 |
+
# if file_info.get("type", "").startswith("video") and "duration" in file_info and file_info["duration"] > 3000: # 5 minute limit for videos
|
414 |
+
# raise gr.Error(f"Video '{file_info.get('original_name')}' ({file_info['duration']:.0f}s) exceeds the 50-minute duration limit.")
|
415 |
|
416 |
# --- Get FFMPEG Command from AI ---
|
417 |
command_string = None
|