Download models/types.py from cyrilfrl/Reddit: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/cyrilfrl/Reddit/resolve/main/models/types.py
- Command line
-
hf download hf://spaces/cyrilfrl/Reddit/models/types.py
-
curl -L -o types.py https://huggingface.co/spaces/cyrilfrl/Reddit/resolve/main/models/types.py
390 Bytes
| # standard-library imports | |
| import typing as tt | |
| # third-party imports | |
| import torch | |
| # types definitions | |
| Title = str | |
| Text = str | |
| Subreddit = str | |
| Fetch_UTC = float | |
| Hours_Ago = float | |
| Count = int | |
| Tensor = torch.Tensor | |
| RawSample = tt.Tuple[Title, Text, Subreddit, Fetch_UTC, Hours_Ago] | |
| ProcessedSample = tt.Tuple[Tensor, Tensor, int, float, Hours_Ago, | |
| Count, Count, Count] |