Spaces:
Sleeping
Sleeping
Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +2 -4
my_model/KBVQA.py
CHANGED
@@ -142,10 +142,8 @@ class KBVQA():
|
|
142 |
return p
|
143 |
|
144 |
|
145 |
-
def generate_answer(self, question,
|
146 |
-
|
147 |
-
st.write('image being detcted')
|
148 |
-
st.image(img)
|
149 |
caption = self.get_caption(img)
|
150 |
image_with_boxes, detected_objects_str = self.detect_objects(img)
|
151 |
st.write(detected_objects_str)
|
|
|
142 |
return p
|
143 |
|
144 |
|
145 |
+
def generate_answer(self, question, caption, detected_objects_str,):
|
146 |
+
|
|
|
|
|
147 |
caption = self.get_caption(img)
|
148 |
image_with_boxes, detected_objects_str = self.detect_objects(img)
|
149 |
st.write(detected_objects_str)
|