Update my_model/tabs/run_inference.py
Browse files
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
|
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()
|