Spaces:
Sleeping
Sleeping
Download models.py from itsjovy/fraudlens: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/itsjovy/fraudlens/resolve/main/models.py
- Command line
-
hf download hf://spaces/itsjovy/fraudlens/models.py
-
curl -L -o models.py https://huggingface.co/spaces/itsjovy/fraudlens/resolve/main/models.py
349 Bytes
| from pydantic import BaseModel | |
| from typing import Optional | |
| class Observation(BaseModel): | |
| return_rate: float | |
| account_age_days: Optional[int] = None # Now accepts null | |
| linked_accounts: Optional[int] = None # Now accepts null | |
| class Action(BaseModel): | |
| decision: str | |
| class Reward(BaseModel): | |
| value: float | |
| reasoning: str |