Spaces:
Running
Running
Update my_model/state_manager.py
Browse files
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):
|