Spaces:
Sleeping
Sleeping
Download src/module.py from bright1/Sepsis-Prediction-API: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/bright1/Sepsis-Prediction-API/resolve/main/src/module.py
- Command line
-
hf download hf://spaces/bright1/Sepsis-Prediction-API/src/module.py
-
curl -L -o module.py https://huggingface.co/spaces/bright1/Sepsis-Prediction-API/resolve/main/src/module.py
471 Bytes
| 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] | |