Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -151,7 +151,7 @@ class InferenceRunner(StateManager):
|
|
151 |
force_reload_full_model = False
|
152 |
|
153 |
#st.session_state['settings_changed'] = self.has_state_changed()
|
154 |
-
if self.settings_changed:
|
155 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
156 |
self.update_prev_state()
|
157 |
|
|
|
151 |
force_reload_full_model = False
|
152 |
|
153 |
#st.session_state['settings_changed'] = self.has_state_changed()
|
154 |
+
if self.is_model_loaded and self.settings_changed:
|
155 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
156 |
self.update_prev_state()
|
157 |
|