IBYDMT / app.py
jacopoteneggi's picture
Update
21d3461 verified
raw
history blame
822 Bytes
import streamlit as st
from app_lib.main import main
if "sidebar_state" not in st.session_state:
st.session_state.sidebar_state = "collapsed"
if "disabled" not in st.session_state:
st.session_state.disabled = False
if "image_name" not in st.session_state:
st.session_state.image_name = None
if "tested" not in st.session_state:
st.session_state.tested = False
if "results" not in st.session_state:
st.session_state.results = None
st.set_page_config(layout="wide", initial_sidebar_state=st.session_state.sidebar_state)
st.session_state.sidebar_state = "collapsed"
with open("style.css", "r") as f:
style = f.read()
with open("header.md", "r") as f:
header = f.read()
st.markdown(f"<style>{style}</style>", unsafe_allow_html=True)
st.markdown(header)
if __name__ == "__main__":
main()