Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import torch
|
|
3 |
from PIL import Image
|
4 |
from torchvision import transforms
|
5 |
from transformers import T5Tokenizer, ViTFeatureExtractor
|
|
|
6 |
|
7 |
class Encoder(nn.Module):
|
8 |
def __init__(self, pretrained_model):
|
|
|
3 |
from PIL import Image
|
4 |
from torchvision import transforms
|
5 |
from transformers import T5Tokenizer, ViTFeatureExtractor
|
6 |
+
from torch import nn
|
7 |
|
8 |
class Encoder(nn.Module):
|
9 |
def __init__(self, pretrained_model):
|