efeperro commited on
Commit
59e90bd
1 Parent(s): 7cb104b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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):