Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +2 -0
my_model/KBVQA.py
CHANGED
@@ -141,6 +141,8 @@ class KBVQA():
|
|
141 |
|
142 |
|
143 |
def generate_answer(self, question, image):
|
|
|
|
|
144 |
caption = self.get_caption(image)
|
145 |
image_with_boxes, detected_objects_str = self.detect_objects(image)
|
146 |
prompt = self.format_prompt(question, caption=caption, objects=detected_objects_str)
|
|
|
141 |
|
142 |
|
143 |
def generate_answer(self, question, image):
|
144 |
+
st.write('image being dected')
|
145 |
+
st.image(image)
|
146 |
caption = self.get_caption(image)
|
147 |
image_with_boxes, detected_objects_str = self.detect_objects(image)
|
148 |
prompt = self.format_prompt(question, caption=caption, objects=detected_objects_str)
|