thak123 commited on
Commit
4e12a6f
·
verified ·
1 Parent(s): fc66215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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,