Spaces:
Sleeping
Sleeping
File size: 471 Bytes
1b5b1a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from pydantic import BaseModel
from typing import List
class Input(BaseModel):
plasma_glucose: float
blood_work_result_1: float
blood_pressure: float
blood_work_result_2: float
blood_work_result_3: float
body_mass_index: float
blood_work_result_4: float
age: int
insurance: bool
class Inputs(BaseModel):
all: List[Input]
def return_dict_inputs(
cls,
):
return [ input.dict() for input in cls.all]
|