m7mdal7aj commited on
Commit
3d8c333
1 Parent(s): f4bcc28

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +1 -1
my_model/tabs/run_inference.py CHANGED
@@ -83,7 +83,7 @@ def run_inference():
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()
89
  state_manager.display_session_state()
 
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 state_manager.settings_changed else "Load Model"
87
  # state_manager.display_session_state()
88
  state_manager.display_model_settings()
89
  state_manager.display_session_state()