Spaces:
Sleeping
Sleeping
Commit
·
0922d39
1
Parent(s):
4c91838
fixe project root
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def get_model_modules(task_type):
|
|
| 44 |
- dimred
|
| 45 |
- anomaly
|
| 46 |
"""
|
| 47 |
-
models_dir = os.path.join(
|
| 48 |
if not os.path.exists(models_dir):
|
| 49 |
print(f"Directory does not exist: {models_dir}")
|
| 50 |
return []
|
|
@@ -235,7 +235,7 @@ def create_task_tab(task_name, model_modules, script_path):
|
|
| 235 |
def run_task(model_mod, dataopt, f, p, kagfile, kcname, kdname, iscomp,
|
| 236 |
drop_cols, select_cols, visualize, mpath, rpath):
|
| 237 |
# Build the command for the relevant script
|
| 238 |
-
script_cmd = [sys.executable, os.path.join(
|
| 239 |
script_cmd.extend(["--model_module", model_mod])
|
| 240 |
|
| 241 |
# Minimal approach for data path logic
|
|
|
|
| 44 |
- dimred
|
| 45 |
- anomaly
|
| 46 |
"""
|
| 47 |
+
models_dir = os.path.join('models', 'unsupervised', task_type)
|
| 48 |
if not os.path.exists(models_dir):
|
| 49 |
print(f"Directory does not exist: {models_dir}")
|
| 50 |
return []
|
|
|
|
| 235 |
def run_task(model_mod, dataopt, f, p, kagfile, kcname, kdname, iscomp,
|
| 236 |
drop_cols, select_cols, visualize, mpath, rpath):
|
| 237 |
# Build the command for the relevant script
|
| 238 |
+
script_cmd = [sys.executable, os.path.join(script_path)]
|
| 239 |
script_cmd.extend(["--model_module", model_mod])
|
| 240 |
|
| 241 |
# Minimal approach for data path logic
|