Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|