-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstreamlit_mainpage.py
33 lines (27 loc) · 1.23 KB
/
streamlit_mainpage.py
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
31
32
33
import streamlit as st
import os
import sys
import logging
from utils import *
LOGGER_INIT(log_level=logging.DEBUG,
print_log_init = False,
shell_output= False)
current_time = TIME_INIT()
st.set_page_config(
layout="wide",
initial_sidebar_state="expanded",
)
st.subheader("# Sample application to render tender document base on pre-defined value")
st.subheader("# Different phase will be displayed on left-hand sidebar")
create_default_table(os.path.normpath(
os.path.join(
os.environ['DB_DIR'],
"database.sqlite")
))
pg = st.navigation([st.Page("pages/Edit_var_list.py", title="View/Edit Variable List", icon="✒️"),
st.Page("pages/View_current_data.py", title="View/Edit Current Data", icon="👁️"),
st.Page("pages/Template_file_management.py", title="Manage Template File", icon="📑"),
st.Page("pages/Render_Output_File.py", title="Render Output File", icon="📓"),
st.Page("pages/Preview_template_file.py", title="Preview Docx File", icon="📖"),
])
pg.run()