rahgadda commited on
Commit
e95a8c6
·
verified ·
1 Parent(s): 2fcf078

Initial Draft

Browse files
Files changed (1) hide show
  1. app.py +53 -0
app.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ import lib.ui.statusMessage as sm
4
+ import lib.ui.sidebar as sb
5
+
6
+ if 'sv_flask_server_proc' not in st.session_state:
7
+ st.session_state.sv_flask_server_proc = None
8
+
9
+ # Starting Streamlit
10
+ def fn_start_streamlit():
11
+
12
+ # -- Streamlit Settings
13
+ st.set_page_config(
14
+ page_title="Personal AI Assistant - Chatbot",
15
+ page_icon="🧊",
16
+ # layout="wide",
17
+ initial_sidebar_state="collapsed"
18
+ )
19
+
20
+ st.markdown("""
21
+ <style>
22
+ .block-container:not(.stSidebarUserContent) {
23
+ padding-top: 2rem;
24
+ padding-left: 0rem;
25
+ padding-right: 0rem;
26
+ }
27
+ </style>
28
+ """, unsafe_allow_html=True)
29
+ st.markdown("""
30
+ <style>
31
+ .reportview-container {
32
+ margin-top: -2em;
33
+ }
34
+ #MainMenu {visibility: hidden;}
35
+ .stDeployButton {display:none;}
36
+ footer {visibility: hidden;}
37
+ #stDecoration {display:none;}
38
+ </style>
39
+ """, unsafe_allow_html=True
40
+ )
41
+
42
+ # -- Display Processing Details
43
+ ui_status_message = st.empty()
44
+
45
+ # -- Display SideBar
46
+ with st.sidebar:
47
+ sb.fn_sidebar_configuration(ui_status_message,sm)
48
+
49
+ # -- Display Main Content
50
+
51
+ # Loading Main
52
+ if __name__ == "__main__":
53
+ fn_start_streamlit()