Spaces:
Running
Running
Update my_model/state_manager.py
Browse files
my_model/state_manager.py
CHANGED
@@ -78,6 +78,9 @@ class StateManager:
|
|
78 |
@property
|
79 |
def is_widget_disabled(self):
|
80 |
return st.session_state['loading_in_progress']
|
|
|
|
|
|
|
81 |
|
82 |
@property
|
83 |
def settings_changed(self):
|
|
|
78 |
@property
|
79 |
def is_widget_disabled(self):
|
80 |
return st.session_state['loading_in_progress']
|
81 |
+
|
82 |
+
def disable_widgets(self):
|
83 |
+
st.session_state['loading_in_progress'] = True
|
84 |
|
85 |
@property
|
86 |
def settings_changed(self):
|