Spaces:
Sleeping
Sleeping
Upload static/index.html with huggingface_hub
Browse files- static/index.html +12 -5
static/index.html
CHANGED
|
@@ -316,9 +316,9 @@
|
|
| 316 |
|
| 317 |
const TASK_OPERATIONS = {
|
| 318 |
'easy_dedup_rename': ['remove_duplicates', 'rename_columns', 'finish'],
|
| 319 |
-
'medium_missing_dtype': ['
|
| 320 |
-
'hard_full_pipeline': ['remove_duplicates', '
|
| 321 |
-
'expert_sales_pipeline': ['remove_duplicates', 'rename_columns', '
|
| 322 |
};
|
| 323 |
|
| 324 |
const ACTION_PARAMS = {
|
|
@@ -419,7 +419,14 @@
|
|
| 419 |
if (episodeDone) { addLog('Episode done — reset first', 'warning'); return; }
|
| 420 |
stepCount++;
|
| 421 |
const params = ACTION_PARAMS[operation] || {};
|
| 422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
|
| 424 |
const btn = document.getElementById('btn-' + operation);
|
| 425 |
if (btn) { btn.disabled = true; btn.innerHTML = '<span class="loading"></span> Running...'; }
|
|
@@ -428,7 +435,7 @@
|
|
| 428 |
const res = await fetch(BASE + '/step/' + currentTask, {
|
| 429 |
method: 'POST',
|
| 430 |
headers: {'Content-Type': 'application/json'},
|
| 431 |
-
body: JSON.stringify({operation, parameters: params})
|
| 432 |
});
|
| 433 |
const data = await res.json();
|
| 434 |
const obs = data.observation;
|
|
|
|
| 316 |
|
| 317 |
const TASK_OPERATIONS = {
|
| 318 |
'easy_dedup_rename': ['remove_duplicates', 'rename_columns', 'finish'],
|
| 319 |
+
'medium_missing_dtype': ['fill_missing_mean', 'fill_missing_mode', 'fill_missing_median', 'fix_dtype', 'finish'],
|
| 320 |
+
'hard_full_pipeline': ['remove_duplicates', 'fill_missing_mean', 'fill_missing_mode', 'fill_missing_median', 'fix_dtype', 'remove_outliers', 'validate_schema', 'finish'],
|
| 321 |
+
'expert_sales_pipeline': ['remove_duplicates', 'rename_columns', 'fill_missing_mean', 'fill_missing_mode', 'fill_missing_median', 'fix_dtype', 'remove_outliers', 'validate_schema', 'finish']
|
| 322 |
};
|
| 323 |
|
| 324 |
const ACTION_PARAMS = {
|
|
|
|
| 419 |
if (episodeDone) { addLog('Episode done — reset first', 'warning'); return; }
|
| 420 |
stepCount++;
|
| 421 |
const params = ACTION_PARAMS[operation] || {};
|
| 422 |
+
|
| 423 |
+
// Map fill_missing_* to fill_missing operation
|
| 424 |
+
let actualOperation = operation;
|
| 425 |
+
if (operation.startsWith('fill_missing_')) {
|
| 426 |
+
actualOperation = 'fill_missing';
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
addLog('[Step ' + stepCount + '] → ' + operation + ' ' + JSON.stringify(params), 'info');
|
| 430 |
|
| 431 |
const btn = document.getElementById('btn-' + operation);
|
| 432 |
if (btn) { btn.disabled = true; btn.innerHTML = '<span class="loading"></span> Running...'; }
|
|
|
|
| 435 |
const res = await fetch(BASE + '/step/' + currentTask, {
|
| 436 |
method: 'POST',
|
| 437 |
headers: {'Content-Type': 'application/json'},
|
| 438 |
+
body: JSON.stringify({operation: actualOperation, parameters: params})
|
| 439 |
});
|
| 440 |
const data = await res.json();
|
| 441 |
const obs = data.observation;
|