geekyrakshit commited on
Commit
021c1f9
1 Parent(s): 08d6b95

fix: UI bug

Browse files
Files changed (1) hide show
  1. application_pages/chat_app.py +7 -0
application_pages/chat_app.py CHANGED
@@ -89,6 +89,13 @@ def initialize_guardrails():
89
  guardrail_name,
90
  )(should_anonymize=True)
91
  )
 
 
 
 
 
 
 
92
  st.session_state.guardrails_manager = GuardrailManager(
93
  guardrails=st.session_state.guardrails
94
  )
 
89
  guardrail_name,
90
  )(should_anonymize=True)
91
  )
92
+ else:
93
+ st.session_state.guardrails.append(
94
+ getattr(
95
+ importlib.import_module("guardrails_genie.guardrails"),
96
+ guardrail_name,
97
+ )()
98
+ )
99
  st.session_state.guardrails_manager = GuardrailManager(
100
  guardrails=st.session_state.guardrails
101
  )