Spaces:
Running
Running
Commit
·
2181ea6
1
Parent(s):
83c650c
Update preprocess.py
Browse files
src/predict/preprocess.py
CHANGED
@@ -8,7 +8,7 @@ try:
|
|
8 |
from src.config import FIGHTERS_CSV_PATH
|
9 |
except ImportError:
|
10 |
# Fallback for when running directly
|
11 |
-
from ..config import FIGHTERS_CSV_PATH
|
12 |
|
13 |
def _clean_numeric_column(series):
|
14 |
"""A helper to clean string columns into numbers, handling errors."""
|
@@ -243,7 +243,7 @@ if __name__ == '__main__':
|
|
243 |
from src.predict.pipeline import PredictionPipeline
|
244 |
except ImportError:
|
245 |
# Fallback for when running directly
|
246 |
-
|
247 |
|
248 |
print("--- Running Preprocessing Example ---")
|
249 |
|
|
|
8 |
from src.config import FIGHTERS_CSV_PATH
|
9 |
except ImportError:
|
10 |
# Fallback for when running directly
|
11 |
+
from ..config import FIGHTERS_CSV_PATH
|
12 |
|
13 |
def _clean_numeric_column(series):
|
14 |
"""A helper to clean string columns into numbers, handling errors."""
|
|
|
243 |
from src.predict.pipeline import PredictionPipeline
|
244 |
except ImportError:
|
245 |
# Fallback for when running directly
|
246 |
+
from .pipeline import PredictionPipeline
|
247 |
|
248 |
print("--- Running Preprocessing Example ---")
|
249 |
|