Update my_model/utilities/state_manager.py
Browse files
my_model/utilities/state_manager.py
CHANGED
@@ -17,7 +17,7 @@ class StateManager:
|
|
17 |
if "previous_state" not in st.session_state:
|
18 |
st.session_state['previous_state'] = {}
|
19 |
if "settings_changed" not in st.session_state:
|
20 |
-
st.session_state['settings_changed'] =
|
21 |
|
22 |
|
23 |
|
@@ -31,7 +31,9 @@ class StateManager:
|
|
31 |
|
32 |
return st.slider(text, min_value, max_value, value, step, key=slider_key_name)
|
33 |
|
34 |
-
|
|
|
|
|
35 |
|
36 |
def display_model_settings(self):
|
37 |
st.write("#### Current Model Settings:")
|
|
|
17 |
if "previous_state" not in st.session_state:
|
18 |
st.session_state['previous_state'] = {}
|
19 |
if "settings_changed" not in st.session_state:
|
20 |
+
st.session_state['settings_changed'] = self.settings_changed
|
21 |
|
22 |
|
23 |
|
|
|
31 |
|
32 |
return st.slider(text, min_value, max_value, value, step, key=slider_key_name)
|
33 |
|
34 |
+
@property
|
35 |
+
def settings_changed(self):
|
36 |
+
return self.has_state_changed()
|
37 |
|
38 |
def display_model_settings(self):
|
39 |
st.write("#### Current Model Settings:")
|