Update pipeline.py
Browse files- pipeline.py +2 -1
pipeline.py
CHANGED
|
@@ -2,8 +2,9 @@ import torch
|
|
| 2 |
import torch.nn as nn
|
| 3 |
from torchvision import transforms
|
| 4 |
from PIL import Image
|
|
|
|
| 5 |
|
| 6 |
-
class Generator(nn.Module):
|
| 7 |
def __init__(self):
|
| 8 |
super(Generator, self).__init__()
|
| 9 |
self.main = nn.Sequential(
|
|
|
|
| 2 |
import torch.nn as nn
|
| 3 |
from torchvision import transforms
|
| 4 |
from PIL import Image
|
| 5 |
+
from huggingface_hub import PyTorchModelHubMixin
|
| 6 |
|
| 7 |
+
class Generator(nn.Module, PyTorchModelHubMixin):
|
| 8 |
def __init__(self):
|
| 9 |
super(Generator, self).__init__()
|
| 10 |
self.main = nn.Sequential(
|