mohitrajdeo
commited on
Commit
·
69102a6
1
Parent(s):
753a007
Fix file path separators for hypertension model and scaler loading
Browse files
app.py
CHANGED
@@ -871,8 +871,8 @@ if selected=='Hypertension Prediction':
|
|
871 |
|
872 |
# Load the model and scaler
|
873 |
try:
|
874 |
-
hypertension_model = pickle.load(open('hypertension
|
875 |
-
hypertension_scaler = pickle.load(open('hypertension
|
876 |
st.success("Model and scaler loaded successfully!")
|
877 |
except Exception as e:
|
878 |
st.error(f"Error loading model or scaler: {e}")
|
|
|
871 |
|
872 |
# Load the model and scaler
|
873 |
try:
|
874 |
+
hypertension_model = pickle.load(open('hypertension/extratrees_model.pkl', 'rb'))
|
875 |
+
hypertension_scaler = pickle.load(open('hypertension/scaler.pkl', 'rb'))
|
876 |
st.success("Model and scaler loaded successfully!")
|
877 |
except Exception as e:
|
878 |
st.error(f"Error loading model or scaler: {e}")
|