Spaces:
Runtime error
Runtime error
Download src/models.py from KasiViswanath/email-env: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/spaces/KasiViswanath/email-env/resolve/main/src/models.py
- Command line
-
hf download hf://spaces/KasiViswanath/email-env/src/models.py
-
curl -L -o models.py https://huggingface.co/spaces/KasiViswanath/email-env/resolve/main/src/models.py
355 Bytes
| from pydantic import BaseModel | |
| from typing import Literal, List, Dict, Any, Optional | |
| class Action(BaseModel): | |
| action_type: Literal["open", "delete", "defer", "escalate"] | |
| email_id: str | |
| class Observation(BaseModel): | |
| inbox: List[Dict[str, Any]] | |
| steps: int = 0 | |
| task: str = "train" | |
| classifier_stats: Optional[Dict[str, Any]] = None | |