Spaces:
Sleeping
Sleeping
Download models.py from Aayan2024/RL_Budget_Planner_env: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/Aayan2024/RL_Budget_Planner_env/resolve/main/models.py
- Command line
-
hf download hf://spaces/Aayan2024/RL_Budget_Planner_env/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Aayan2024/RL_Budget_Planner_env/resolve/main/models.py
490 Bytes
| from pydantic import BaseModel | |
| from typing import Optional | |
| class BudgetAction(BaseModel): | |
| category: str # e.g. "food", "rent", "transport", "entertainment" | |
| amount: float # amount spent | |
| class BudgetObservation(BaseModel): | |
| message: str | |
| remaining_budget: float | |
| reward: float | |
| done: bool | |
| class BudgetState(BaseModel): | |
| episode_id: str | |
| step_count: int | |
| total_budget: float | |
| spent: float | |
| task_level: str # "easy", "medium", "hard" | |