Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -129,6 +129,7 @@ image_processor = AutoImageProcessor.from_pretrained("openai/clip-vit-base-patch
|
|
129 |
|
130 |
def predict_sentiment(text, image):
|
131 |
print(text, image)
|
|
|
132 |
image = torchvision.io.read_image(image)
|
133 |
# image = transforms.ToTensor()(image).unsqueeze(0)
|
134 |
|
|
|
129 |
|
130 |
def predict_sentiment(text, image):
|
131 |
print(text, image)
|
132 |
+
print(dir(image))
|
133 |
image = torchvision.io.read_image(image)
|
134 |
# image = transforms.ToTensor()(image).unsqueeze(0)
|
135 |
|