m7mdal7aj commited on
Commit
d80fd56
1 Parent(s): d69b378

Update my_model/utilities/state_manager.py

Browse files
my_model/utilities/state_manager.py CHANGED
@@ -26,6 +26,11 @@ class StateManager:
26
  if selected_method is not None:
27
  st.session_state['model_settings']['selected_method'] = selected_method
28
 
 
 
 
 
 
29
  def check_settings_changed(self, current_selected_method, current_detection_model, current_confidence_level):
30
  return (st.session_state['model_settings']['detection_model'] != current_detection_model or
31
  st.session_state['model_settings']['confidence_level'] != current_confidence_level or
 
26
  if selected_method is not None:
27
  st.session_state['model_settings']['selected_method'] = selected_method
28
 
29
+ def set_slider_value(self, text, min_value, max_value, value, step, slider_key_name):
30
+
31
+ return st.slider(text, min_value, max_value, value, step, key=slider_key_name)
32
+
33
+
34
  def check_settings_changed(self, current_selected_method, current_detection_model, current_confidence_level):
35
  return (st.session_state['model_settings']['detection_model'] != current_detection_model or
36
  st.session_state['model_settings']['confidence_level'] != current_confidence_level or