nat232 commited on
Commit
dc1b89f
·
verified ·
1 Parent(s): 08832c7

Update PanelInterface.py

Browse files
Files changed (1) hide show
  1. PanelInterface.py +4 -3
PanelInterface.py CHANGED
@@ -93,8 +93,7 @@ def build_interface(respondent_agents_dict, processor_llm):
93
  with gr.Column():
94
  gr.Markdown(ui_texts["footer_html"])
95
 
96
- logging.info("Interface build complete.")
97
- modal_script = """
98
  <script>
99
  function showModal(event, id) {
100
  event.preventDefault();
@@ -122,6 +121,8 @@ function showModal(event, id) {
122
  </script>
123
  """ % json.dumps(bios_js_object)
124
 
125
- demo.append(gr.HTML(modal_script))
 
 
126
  return demo
127
 
 
93
  with gr.Column():
94
  gr.Markdown(ui_texts["footer_html"])
95
 
96
+ modal_script = """
 
97
  <script>
98
  function showModal(event, id) {
99
  event.preventDefault();
 
121
  </script>
122
  """ % json.dumps(bios_js_object)
123
 
124
+ gr.HTML(modal_script)
125
+
126
+ logging.info("Interface build complete.")
127
  return demo
128