Spaces:
Runtime error
Runtime error
File size: 380 Bytes
b16356d c043326 b16356d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from pydantic import BaseModel
import pickle
# loading the saved model
model_ML_DiabetesPrediction = pickle.load(open('./projects/ML_DiabetesPrediction/model_DiabetesPrediction.pkl', 'rb'))
class form2(BaseModel):
Pregnancies: int
Glucose: int
BloodPressure: int
SkinThickness: int
Insulin: int
BMI: float
DiabetesPedigreeFunction: float
Age: int |