forked from siddevkota/Challenge_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
51 lines (40 loc) · 1.53 KB
/
Copy pathmain.py
File metadata and controls
51 lines (40 loc) · 1.53 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import streamlit as st
from streamlit_option_menu import option_menu
import product1,product2,product3,admin
st.set_page_config(
page_title="Review Response Bot",
)
class MultiApp:
def __init__(self):
self.apps = []
def add_app(self, title, func):
self.apps.append({
"title": title,
"function": func
})
def run():
# app = st.sidebar(
with st.sidebar:
app = option_menu(
menu_title='Response Bot',
options=['Product1', 'Product2', 'Product3', 'Admin'],
icons=['chat-fill', 'chat-fill', 'chat-fill', 'person-circle'],
menu_icon='chat-text-fill',
default_index=1,
styles={
"container": {"padding": "5!important", "background-color": 'black'},
"icon": {"color": "white", "font-size": "23px"},
"nav-link": {"color": "white", "font-size": "20px", "text-align": "left", "margin": "0px",
"--hover-color": "blue"},
"nav-link-selected": {"background-color": "#02ab21"}, }
)
if app == "Product1":
product1.app()
if app == "Product2":
product2.app()
if app == "Product3":
product3.app()
if app == "Admin":
admin.app()
run()
st.markdown("<p style='text-align:center'>Created by: Team Corazon</p>", unsafe_allow_html=True)