Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|