Download core/model.py from LunaStev/FlowModel: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/LunaStev/FlowModel/resolve/main/core/model.py
- Command line
-
hf download hf://LunaStev/FlowModel/core/model.py
-
curl -L -o model.py https://huggingface.co/LunaStev/FlowModel/resolve/main/core/model.py
304 Bytes
| import torch.nn as nn | |
| class FlowModel: | |
| def __init__(self): | |
| self.model = None | |
| def build_model(self): | |
| self.model = nn.Sequential( | |
| nn.Linear(28*28, 128), | |
| nn.ReLU(), | |
| nn.Linear(128, 10) | |
| ) | |
| def get_model(self): | |
| return self.model |