awacke1 commited on
Commit
79afa72
·
verified ·
1 Parent(s): d7fb62e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1035,7 +1035,7 @@ def render_main_content():
1035
  window.PLOT_DEPTH = {json.dumps(PLOT_DEPTH)};
1036
  console.log("Streamlit State Injected:", {{ username: window.USERNAME, websocketUrl: window.WEBSOCKET_URL, selectedObject: window.SELECTED_OBJECT_TYPE }});
1037
  </script>"""
1038
- `html_content_with_state = html_template.replace('</head>', js_injection_script + '\n</head>', 1)
1039
  components.html(html_content_with_state, height=700, scrolling=False)
1040
  except FileNotFoundError:
1041
  st.error(f"CRITICAL ERROR: Could not find '{html_file_path}'.")
 
1035
  window.PLOT_DEPTH = {json.dumps(PLOT_DEPTH)};
1036
  console.log("Streamlit State Injected:", {{ username: window.USERNAME, websocketUrl: window.WEBSOCKET_URL, selectedObject: window.SELECTED_OBJECT_TYPE }});
1037
  </script>"""
1038
+ html_content_with_state = html_template.replace('</head>', js_injection_script + '\n</head>', 1)
1039
  components.html(html_content_with_state, height=700, scrolling=False)
1040
  except FileNotFoundError:
1041
  st.error(f"CRITICAL ERROR: Could not find '{html_file_path}'.")