m7mdal7aj commited on
Commit
212cd39
1 Parent(s): e6f809f

Update my_model/utilities/st_utils.py

Browse files
Files changed (1) hide show
  1. my_model/utilities/st_utils.py +4 -0
my_model/utilities/st_utils.py CHANGED
@@ -105,6 +105,10 @@ class StateManager:
105
  df = pd.DataFrame(data)
106
  st.table(df)
107
 
 
 
 
 
108
  def is_model_loaded(self):
109
  return 'kbvqa' in st.session_state and st.session_state['kbvqa'] is not None
110
 
 
105
  df = pd.DataFrame(data)
106
  st.table(df)
107
 
108
+ def get_model(self):
109
+ """Retrieve the KBVQA model from the session state."""
110
+ return st.session_state.get('kbvqa', None)
111
+
112
  def is_model_loaded(self):
113
  return 'kbvqa' in st.session_state and st.session_state['kbvqa'] is not None
114