Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,9 @@ image_processor = AutoImageProcessor.from_pretrained("openai/clip-vit-base-patch
|
|
126 |
|
127 |
def predict_sentiment(text, image):
|
128 |
print(text, image)
|
129 |
-
image =
|
|
|
|
|
130 |
text_inputs = tokenizer(
|
131 |
text,
|
132 |
max_length=512,
|
|
|
126 |
|
127 |
def predict_sentiment(text, image):
|
128 |
print(text, image)
|
129 |
+
image = torch.from_numpy(image)
|
130 |
+
print(image.shape)
|
131 |
+
|
132 |
text_inputs = tokenizer(
|
133 |
text,
|
134 |
max_length=512,
|