m7mdal7aj commited on
Commit
141c01e
·
verified ·
1 Parent(s): 6307a2e

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +2 -0
my_model/tabs/run_inference.py CHANGED
@@ -81,6 +81,8 @@ def run_inference():
81
  st.session_state['settings_changed'] = state_manager.has_state_changed()
82
  if st.session_state['settings_changed']:
83
  st.warning("Model settings have changed, please reload the model, this will take a second .. ")
 
 
84
  st.session_state.button_label = "Reload Model" if state_manager.is_model_loaded() and st.session_state['settings_changed'] else "Load Model"
85
  # state_manager.display_session_state()
86
  state_manager.display_model_settings()
 
81
  st.session_state['settings_changed'] = state_manager.has_state_changed()
82
  if st.session_state['settings_changed']:
83
  st.warning("Model settings have changed, please reload the model, this will take a second .. ")
84
+ st.write(f' model loaded ? {state_manager.is_model_loaded()}')
85
+ st.write(f' settings_changed ? {st.session_state['settings_changed']}')
86
  st.session_state.button_label = "Reload Model" if state_manager.is_model_loaded() and st.session_state['settings_changed'] else "Load Model"
87
  # state_manager.display_session_state()
88
  state_manager.display_model_settings()