thorodin103 commited on
Commit
7c80b17
·
verified ·
1 Parent(s): 15f65ff

Upload static/index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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': ['fill_missing', 'fix_dtype', 'finish'],
320
- 'hard_full_pipeline': ['remove_duplicates', 'fill_missing', 'fix_dtype', 'remove_outliers', 'validate_schema', 'finish'],
321
- 'expert_sales_pipeline': ['remove_duplicates', 'rename_columns', 'fill_missing', 'fix_dtype', 'remove_outliers', 'validate_schema', 'finish']
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
- addLog('[Step ' + stepCount + '] → ' + operation, 'info');
 
 
 
 
 
 
 
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;