Spaces:
Paused
Paused
Fix frontend patch: use array not object literal in new Set() for extension types
Browse files
patch_frontend_uploads.py
CHANGED
|
@@ -18,10 +18,10 @@ ACCEPT = (
|
|
| 18 |
)
|
| 19 |
|
| 20 |
EXTENSIONS_SET = (
|
| 21 |
-
"
|
| 22 |
"'png', 'jpg', 'jpeg', 'webp', 'bmp', 'tiff', 'tif', 'gif', "
|
| 23 |
"'xlsx', 'xlsm', 'xls', 'docx', 'doc', 'pptx', "
|
| 24 |
-
"'odt', 'ods', 'odp', 'txt', 'md', 'rtf', 'log'
|
| 25 |
)
|
| 26 |
|
| 27 |
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
EXTENSIONS_SET = (
|
| 21 |
+
"['csv', 'json', 'jsonl', 'pdf', "
|
| 22 |
"'png', 'jpg', 'jpeg', 'webp', 'bmp', 'tiff', 'tif', 'gif', "
|
| 23 |
"'xlsx', 'xlsm', 'xls', 'docx', 'doc', 'pptx', "
|
| 24 |
+
"'odt', 'ods', 'odp', 'txt', 'md', 'rtf', 'log']"
|
| 25 |
)
|
| 26 |
|
| 27 |
|