m7mdal7aj commited on
Commit
c70ac46
1 Parent(s): 16b6309

Update my_model/state_manager.py

Browse files
Files changed (1) hide show
  1. my_model/state_manager.py +1 -1
my_model/state_manager.py CHANGED
@@ -196,7 +196,7 @@ class StateManager:
196
  Returns:
197
  bool: True if the model is loaded, False otherwise.
198
  """
199
- return 'kbvqa' in st.session_state and st.session_state['kbvqa'] is not None
200
 
201
 
202
  def reload_detection_model(self):
 
196
  Returns:
197
  bool: True if the model is loaded, False otherwise.
198
  """
199
+ return 'kbvqa' in st.session_state and st.session_state['kbvqa'] is not None and st.session_state.kbvqa.all_models_loaded
200
 
201
 
202
  def reload_detection_model(self):