File size: 822 Bytes
80dc74c
 
 
 
4f55ca2
 
 
 
21d3461
 
 
 
4f55ca2
 
 
 
80dc74c
f6eb5e3
 
7e207f0
 
 
 
80dc74c
7e207f0
5ead791
80dc74c
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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()