Spaces:
Runtime error
Runtime error
Update projects/ML_DiabetesPrediction/ML_DiabetesPrediction.py
Browse files
projects/ML_DiabetesPrediction/ML_DiabetesPrediction.py
CHANGED
@@ -2,7 +2,7 @@ from pydantic import BaseModel
|
|
2 |
import pickle
|
3 |
|
4 |
# loading the saved model
|
5 |
-
model_ML_DiabetesPrediction = pickle.load(open('./projects/ML_DiabetesPrediction/model_DiabetesPrediction.
|
6 |
|
7 |
class form2(BaseModel):
|
8 |
Pregnancies: int
|
|
|
2 |
import pickle
|
3 |
|
4 |
# loading the saved model
|
5 |
+
model_ML_DiabetesPrediction = pickle.load(open('./projects/ML_DiabetesPrediction/model_DiabetesPrediction.pkl', 'rb'))
|
6 |
|
7 |
class form2(BaseModel):
|
8 |
Pregnancies: int
|