haileyhalimj@gmail.com commited on
Commit
dc6b17a
·
1 Parent(s): dd8a521

commented out _ensure_fresh_config to stop infinite reload

Browse files
Files changed (1) hide show
  1. config_page.py +6 -6
config_page.py CHANGED
@@ -808,12 +808,12 @@ def save_configuration():
808
  st.session_state.optimization_config = config
809
 
810
  # Refresh module-level variables to pick up new configuration
811
- try:
812
- from src.config.optimization_config import _ensure_fresh_config
813
- _ensure_fresh_config()
814
- print("✅ Refreshed module-level configuration variables")
815
- except Exception as e:
816
- print(f"⚠️ Could not refresh module-level variables: {e}")
817
 
818
  # Return config for use in main function
819
  return config
 
808
  st.session_state.optimization_config = config
809
 
810
  # Refresh module-level variables to pick up new configuration
811
+ # try:
812
+ # from src.config.optimization_config import _ensure_fresh_config
813
+ # _ensure_fresh_config()
814
+ # print("✅ Refreshed module-level configuration variables")
815
+ # except Exception as e:
816
+ # print(f"⚠️ Could not refresh module-level variables: {e}")
817
 
818
  # Return config for use in main function
819
  return config