fffiloni commited on
Commit
9da309a
1 Parent(s): 042d40b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def process_image(image_in):
103
  print(result)
104
  return result
105
  '''
106
- image = Image.open('<IMAGE_PATH>')
107
  enc_image = model.encode_image(image)
108
  result = model.answer_question(enc_image, "Describe the image in one sentence.", tokenizer)
109
  print(result)
 
103
  print(result)
104
  return result
105
  '''
106
+ image = Image.open(image_in)
107
  enc_image = model.encode_image(image)
108
  result = model.answer_question(enc_image, "Describe the image in one sentence.", tokenizer)
109
  print(result)