rtnjt commited on
Commit
460b7e2
·
verified ·
1 Parent(s): e7cf3d5

using .jolib models instead .pkl

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -6,12 +6,12 @@ import os
6
 
7
  # Load all trained models
8
  models = {
9
- "Logistic Regression": joblib.load('logistic_regression_model.pkl'),
10
- "Random Forest": joblib.load('random_forest_model.pkl'),
11
- "Support Vector Machine (SVM)": joblib.load('svm_model.pkl'),
12
- "Decision Tree": joblib.load('decision_tree_model.pkl'),
13
- "XGBoost": joblib.load('xgboost_model.pkl'),
14
- "AdaBoost": joblib.load('adaboost_model.pkl')
15
  }
16
 
17
  def predict_risk(model_name, gender, age, social_category, domicile_type, first_gen,
 
6
 
7
  # Load all trained models
8
  models = {
9
+ "Logistic Regression": joblib.load('logistic_regression_model.joblib'),
10
+ "Random Forest": joblib.load('random_forest_model.joblib'),
11
+ "Support Vector Machine (SVM)": joblib.load('svm_model.joblib'),
12
+ "Decision Tree": joblib.load('decision_tree_model.joblib'),
13
+ "XGBoost": joblib.load('xgboost_model.joblib'),
14
+ "AdaBoost": joblib.load('adaboost_model.joblib')
15
  }
16
 
17
  def predict_risk(model_name, gender, age, social_category, domicile_type, first_gen,