Spaces:
Sleeping
Sleeping
Commit ·
0b10a80
1
Parent(s): 071de34
fixe models path
Browse files
app.py
CHANGED
|
@@ -35,14 +35,9 @@ import sys
|
|
| 35 |
import glob
|
| 36 |
import re
|
| 37 |
|
| 38 |
-
# Add the project root directory to the Python path
|
| 39 |
-
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 40 |
-
project_root = os.path.abspath(os.path.join(current_dir, '../../'))
|
| 41 |
-
sys.path.append(project_root)
|
| 42 |
-
|
| 43 |
def get_classification_model_modules():
|
| 44 |
# Get the list of available classification model modules
|
| 45 |
-
models_dir = os.path.join(
|
| 46 |
model_files = glob.glob(os.path.join(models_dir, '*.py'))
|
| 47 |
|
| 48 |
print(f"Looking for model files in: {models_dir}")
|
|
|
|
| 35 |
import glob
|
| 36 |
import re
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
def get_classification_model_modules():
|
| 39 |
# Get the list of available classification model modules
|
| 40 |
+
models_dir = os.path.join('models', 'supervised', 'classification')
|
| 41 |
model_files = glob.glob(os.path.join(models_dir, '*.py'))
|
| 42 |
|
| 43 |
print(f"Looking for model files in: {models_dir}")
|