update
Browse files1404 unmodified lines1405140614071408140914101411141214131414141314151416141714181404 unmodified lines app_py_path = os.path.join(src_dir, "streamlit_app.py") # Convert HTML code to Streamlit app # Escape the HTML content properly for the f-string escaped_code = code.replace('"', '\\"').replace('\n', '\\n') streamlit_app_code = f'''import streamlit as st
st.set_page_config(page_title="Generated App", layout="wide")
# Display the HTML contenthtml_content = """{code.replace('"""', '\\"""')}"""html_content = """{escaped_code}"""
st.components.v1.html(html_content, height=800, scrolling=True)'''app.py+3-1