m7mdal7aj commited on
Commit
2b70006
1 Parent(s): 5d3068d

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +2 -1
my_model/tabs/run_inference.py CHANGED
@@ -59,7 +59,7 @@ class InferenceRunner(StateManager):
59
 
60
  caption, detected_objects_str, image_with_boxes = self.analyze_image(image_data['image'], kbvqa)
61
  self.update_image_data(image_key, caption, detected_objects_str, True)
62
- st.session_state['loading_in_progress'] = False
63
 
64
 
65
  # Initialize qa_history for each image
@@ -151,5 +151,6 @@ class InferenceRunner(StateManager):
151
  st.session_state['loading_in_progress'] = False
152
  free_gpu_resources()
153
  self.image_qa_app(self.get_model())
 
154
 
155
 
 
59
 
60
  caption, detected_objects_str, image_with_boxes = self.analyze_image(image_data['image'], kbvqa)
61
  self.update_image_data(image_key, caption, detected_objects_str, True)
62
+ st.session_state['loading_in_progress'] = False
63
 
64
 
65
  # Initialize qa_history for each image
 
151
  st.session_state['loading_in_progress'] = False
152
  free_gpu_resources()
153
  self.image_qa_app(self.get_model())
154
+ st.write(st.session_state['loading_in_progress'])
155
 
156