shimaa22 commited on
Commit
224c828
·
verified ·
1 Parent(s): 09d962a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,9 +3,10 @@ import pandas as pd
3
  import pickle
4
 
5
  # تحميل الموديل
6
- with open("diabetes_model.pkl", "rb") as f:
7
- model = pickle.load(f)
8
 
 
 
 
9
 
10
  def predict_diabetes(age, gender, bmi, blood_pressure, fasting_glucose,
11
  insulin, hba1c, cholesterol, triglycerides,
 
3
  import pickle
4
 
5
  # تحميل الموديل
 
 
6
 
7
+ import joblib
8
+
9
+ model = joblib.load("diabetes_model.pkl.pkl")
10
 
11
  def predict_diabetes(age, gender, bmi, blood_pressure, fasting_glucose,
12
  insulin, hba1c, cholesterol, triglycerides,