Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -608,7 +608,7 @@ HTML_CONTENT = """
|
|
608 |
|
609 |
uploadForm.addEventListener('submit', (e) => {
|
610 |
e.preventDefault();
|
611 |
-
const filesToUpload = fileInput.files.length > 0 ? fileInput.files : pastedFiles;
|
612 |
if (filesToUpload.length > 0) {
|
613 |
uploadFiles(filesToUpload);
|
614 |
}
|
|
|
608 |
|
609 |
uploadForm.addEventListener('submit', (e) => {
|
610 |
e.preventDefault();
|
611 |
+
const filesToUpload = fileInput.files.length > 0 ? Array.from(fileInput.files) : pastedFiles;
|
612 |
if (filesToUpload.length > 0) {
|
613 |
uploadFiles(filesToUpload);
|
614 |
}
|