Spaces:
Sleeping
Sleeping
Upload index.html
Browse files- static/index.html +12 -0
static/index.html
CHANGED
|
@@ -1468,6 +1468,9 @@ async function uploadDatabase() {
|
|
| 1468 |
// Show task selection for uploaded DB
|
| 1469 |
showUploadedDbTaskSelector(data.compatible_tasks);
|
| 1470 |
|
|
|
|
|
|
|
|
|
|
| 1471 |
toast('Database uploaded! ' + data.compatible_tasks.length + ' tasks available', 'success');
|
| 1472 |
} else {
|
| 1473 |
// No compatible tasks - go to custom exploration mode
|
|
@@ -1831,6 +1834,15 @@ function formatResult(data) {
|
|
| 1831 |
}
|
| 1832 |
}
|
| 1833 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1834 |
// Return as formatted text
|
| 1835 |
return formatFeedback(feedback);
|
| 1836 |
}
|
|
|
|
| 1468 |
// Show task selection for uploaded DB
|
| 1469 |
showUploadedDbTaskSelector(data.compatible_tasks);
|
| 1470 |
|
| 1471 |
+
// Ensure task selector is enabled
|
| 1472 |
+
updateUIForMode();
|
| 1473 |
+
|
| 1474 |
toast('Database uploaded! ' + data.compatible_tasks.length + ' tasks available', 'success');
|
| 1475 |
} else {
|
| 1476 |
// No compatible tasks - go to custom exploration mode
|
|
|
|
| 1834 |
}
|
| 1835 |
}
|
| 1836 |
|
| 1837 |
+
// Check if feedback is a string that looks like a table (starts with { and has column patterns)
|
| 1838 |
+
if (typeof feedback === 'string' && feedback.includes('{') && feedback.includes('}')) {
|
| 1839 |
+
// Try to parse as Python-style dict array
|
| 1840 |
+
const rows = parseNullAuditResult(feedback);
|
| 1841 |
+
if (rows.length > 0) {
|
| 1842 |
+
return formatArrayAsTable(rows);
|
| 1843 |
+
}
|
| 1844 |
+
}
|
| 1845 |
+
|
| 1846 |
// Return as formatted text
|
| 1847 |
return formatFeedback(feedback);
|
| 1848 |
}
|