Spaces:
Running
Running
| import streamlit as st | |
| st.set_page_config( | |
| layout="wide", | |
| initial_sidebar_state="collapsed" | |
| ) | |
| ### insert external css | |
| def insert_css(css_file:str): | |
| with open(css_file) as f: | |
| st.markdown(f"<style>{f.read()}</style>",unsafe_allow_html=True) | |
| # app settings css | |
| insert_css("css_files/app.css") | |
| ### insert external html file | |
| def insert_html(html_file): | |
| with open(html_file) as f: | |
| return f.read() | |
| st.markdown(insert_html("html_files/about.html"),unsafe_allow_html=True) |