m7mdal7aj commited on
Commit
91f466a
1 Parent(s): 2d605ad

Update my_model/KBVQA.py

Browse files
Files changed (1) hide show
  1. 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, image):
146
- img = copy.deepcopy(image)
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)