|
import streamlit as st
|
|
|
|
|
|
|
|
import os
|
|
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
|
|
|
|
st.set_page_config(
|
|
page_title='OCR Comparator', layout ="wide",
|
|
initial_sidebar_state="expanded",
|
|
)
|
|
|
|
|
|
|
|
st.markdown("""
|
|
<style>
|
|
.block-container {
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem;
|
|
padding-left: 1rem;
|
|
padding-right: 2rem;
|
|
}
|
|
</style>
|
|
""", unsafe_allow_html=True)
|
|
|
|
page1 = st.Page("home_page.py", title="Home", icon=":material/home:")
|
|
page2 = st.Page("about.py", title="About", icon=":material/info:")
|
|
page3 = st.Page("enhance.py", title="Image processing", icon=":material/edit_square:")
|
|
page4 = st.Page("ocr_comparator.py", title="OCR Comparator", icon=":material/smart_display:")
|
|
|
|
pg = st.navigation([page1, page2, page3, page4])
|
|
|
|
pg.run() |