Spaces:
Running
Running
feat: Increase file size limit from 10MB to 100MB
Browse files
app.py
CHANGED
|
@@ -210,8 +210,8 @@ def update(
|
|
| 210 |
raise gr.Error(
|
| 211 |
"Please make sure all videos are less than 2 minute long."
|
| 212 |
)
|
| 213 |
-
if file_info["size"] >
|
| 214 |
-
raise gr.Error("Please make sure all files are less than
|
| 215 |
|
| 216 |
attempts = 0
|
| 217 |
while attempts < 2:
|
|
|
|
| 210 |
raise gr.Error(
|
| 211 |
"Please make sure all videos are less than 2 minute long."
|
| 212 |
)
|
| 213 |
+
if file_info["size"] > 100000000:
|
| 214 |
+
raise gr.Error("Please make sure all files are less than 100MB in size.")
|
| 215 |
|
| 216 |
attempts = 0
|
| 217 |
while attempts < 2:
|