-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHome.py
39 lines (31 loc) · 813 Bytes
/
Home.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
34
35
36
37
38
39
import streamlit as st
from streamlit_option_menu import option_menu
from views import App, Conditions, Logs, About
st.set_page_config(
page_title="AskNICE!",
page_icon=":brain:",
#layout="wide"
)
hide_menu_style = """
<style>
#MainMenu {visibility: hidden;}
</style>
"""
st.markdown(hide_menu_style, unsafe_allow_html=True)
v_menu=["Ask", "About", "Logs", "Conditions"]
selected = option_menu(
menu_title=None,
options=v_menu,
icons=["robot","info-circle","activity","list-ol"],
menu_icon="menu-down",
default_index=0,
orientation="horizontal"
)
if selected=="Ask":
App.createPage()
if selected=="About":
About.createPage()
if selected=="Logs":
Logs.createPage()
if selected=="Conditions":
Conditions.createPage()