nat232 commited on
Commit
a2c5200
·
verified ·
1 Parent(s): 7971ed9

Update PanelInterface.py

Browse files
Files changed (1) hide show
  1. PanelInterface.py +1 -2
PanelInterface.py CHANGED
@@ -101,7 +101,6 @@ def build_interface(respondent_agents_dict, processor_llm):
101
 
102
  # Inject the bios object for the modal JS
103
  bios_json = json.dumps(bios_js_object)
104
- permitted_topics = ui_texts.get("permitted_topics_html", "")
105
  prohibited_topics = ui_texts.get("prohibited_topics_html", "")
106
  modal_script = f"""
107
  <script>
@@ -149,7 +148,7 @@ function showTopicsModal(event) {{
149
  const backdrop = document.getElementById('topicsBackdrop');
150
  const closeButton = document.getElementById('closeTopicsButton');
151
  const topicsContent = document.getElementById('topicsContent');
152
- topicsContent.innerHTML = `{permitted_topics}{prohibited_topics}`;
153
  modal.style.display = 'block';
154
  backdrop.style.display = 'block';
155
  const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
 
101
 
102
  # Inject the bios object for the modal JS
103
  bios_json = json.dumps(bios_js_object)
 
104
  prohibited_topics = ui_texts.get("prohibited_topics_html", "")
105
  modal_script = f"""
106
  <script>
 
148
  const backdrop = document.getElementById('topicsBackdrop');
149
  const closeButton = document.getElementById('closeTopicsButton');
150
  const topicsContent = document.getElementById('topicsContent');
151
+ topicsContent.innerHTML = `{prohibited_topics}`;
152
  modal.style.display = 'block';
153
  backdrop.style.display = 'block';
154
  const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;