Spaces:
Sleeping
Sleeping
Download models.py from shimizukawa/python-no-senpai: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/shimizukawa/python-no-senpai/resolve/main/models.py
- Command line
-
hf download hf://spaces/shimizukawa/python-no-senpai/models.py
-
curl -L -o models.py https://huggingface.co/spaces/shimizukawa/python-no-senpai/resolve/main/models.py
421 Bytes
| import dataclasses | |
| class BaseModel: | |
| id: int | |
| title: str | |
| ctime: int | |
| user: str | |
| url: str | |
| type: str | |
| index: str = "" | |
| class GithubIssue(BaseModel): | |
| labels: list[str] = dataclasses.field(default_factory=list) | |
| type: str = "issue" | |
| class WikiPage(BaseModel): | |
| type: str = "wiki" | |