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