Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -150,14 +150,14 @@ def predict_sentiment(text, image):
|
|
150 |
)
|
151 |
image_transformations = torch.jit.script(image_transformations)
|
152 |
pixel_values = image_transformations(image)
|
153 |
-
|
154 |
|
155 |
print(text_inputs)
|
156 |
print("its going in ",pixel_values)
|
157 |
|
158 |
prediction = None
|
159 |
with torch.no_grad():
|
160 |
-
prediction = model(*text_inputs
|
161 |
print(prediction)
|
162 |
return prediction
|
163 |
|
|
|
150 |
)
|
151 |
image_transformations = torch.jit.script(image_transformations)
|
152 |
pixel_values = image_transformations(image)
|
153 |
+
text_inputs["pixel_values"] = pixel_values
|
154 |
|
155 |
print(text_inputs)
|
156 |
print("its going in ",pixel_values)
|
157 |
|
158 |
prediction = None
|
159 |
with torch.no_grad():
|
160 |
+
prediction = model(*text_inputs)
|
161 |
print(prediction)
|
162 |
return prediction
|
163 |
|