Spaces:
Sleeping
Sleeping
surbi karki commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import numpy as np
|
|
| 7 |
# Load the trained model and scaler
|
| 8 |
try:
|
| 9 |
model = joblib.load('LR1.pkl') # Replace with the path to your saved model
|
| 10 |
-
scaler = joblib.load('
|
| 11 |
except Exception as e:
|
| 12 |
raise RuntimeError(f"Failed to load model or scaler: {e}")
|
| 13 |
|
|
|
|
| 7 |
# Load the trained model and scaler
|
| 8 |
try:
|
| 9 |
model = joblib.load('LR1.pkl') # Replace with the path to your saved model
|
| 10 |
+
scaler = joblib.load('scaler1.pkl') # Ensure the scaler is saved during training and available here
|
| 11 |
except Exception as e:
|
| 12 |
raise RuntimeError(f"Failed to load model or scaler: {e}")
|
| 13 |
|