Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,6 +118,9 @@ load_model(model, sf_filename)
|
|
| 118 |
# )
|
| 119 |
|
| 120 |
|
|
|
|
|
|
|
|
|
|
| 121 |
def predict_sentiment(text, image):
|
| 122 |
print(text, image)
|
| 123 |
text_inputs = tokenizer(
|
|
|
|
| 118 |
# )
|
| 119 |
|
| 120 |
|
| 121 |
+
|
| 122 |
+
image_processor = AutoImageProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
| 123 |
+
|
| 124 |
def predict_sentiment(text, image):
|
| 125 |
print(text, image)
|
| 126 |
text_inputs = tokenizer(
|