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