Download schema/patient_inputs.py from xplorers/UPDRS_API: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/xplorers/UPDRS_API/resolve/main/schema/patient_inputs.py
- Command line
-
hf download hf://spaces/xplorers/UPDRS_API/schema/patient_inputs.py
-
curl -L -o patient_inputs.py https://huggingface.co/spaces/xplorers/UPDRS_API/resolve/main/schema/patient_inputs.py
358 Bytes
| from pydantic import BaseModel, Field | |
| from typing import Optional | |
| class BasicInfo(BaseModel): | |
| age: int = Field(..., gt=10, lt=120) | |
| sex: str = Field(..., example="male") | |
| test_time: float | |
| # Note: The /analyze/voice endpoint currently accepts raw multipart form fields | |
| # rather than a JSON body, so these models are used as reference schemas only. |