thak123 commited on
Commit
caf7d56
1 Parent(s): 163556f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -138,6 +138,7 @@ def predict_sentiment(text, image):
138
  max_length=512,
139
  padding="max_length",
140
  truncation=True,
 
141
  )
142
 
143
  image_transformations = Transform(
 
138
  max_length=512,
139
  padding="max_length",
140
  truncation=True,
141
+ return_tensors="pt"
142
  )
143
 
144
  image_transformations = Transform(