Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ 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):
|
|
|
4 |
from torchvision import transforms
|
5 |
from transformers import T5Tokenizer, ViTFeatureExtractor
|
6 |
from torch import nn
|
7 |
+
from typing import Tuple
|
8 |
|
9 |
class Encoder(nn.Module):
|
10 |
def __init__(self, pretrained_model):
|