Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def process_image(image_in):
|
|
103 |
print(result)
|
104 |
return result
|
105 |
'''
|
106 |
-
image = Image.open(
|
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)
|