-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
64 lines (54 loc) · 2.03 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import streamlit as st
from streamlit_option_menu import option_menu
import about
import account
import cancerdata
import feedbc
import home
import news
import predict
import predictdata
st.set_page_config(
page_title="Breast Care",
)
class MultiApp:
def __init__(self):
self.apps = []
def add_app(self, title, func):
self.apps.append({
"title": title,
"function": func,
})
def run():
with st.sidebar:
st.image('image/logo-removebg.png', width=200, caption='')
app = option_menu(
menu_title='Breast Care ',
options=['Home','News','Predict Data','Predict','Cancer Data','Feedback','Account','about'],
icons=['house-fill','newspaper','book','graph-up','database','chat-text-fill','person-circle','info-circle-fill'],
# menu_icon= st.image('img/breast-cancer.png', width=100),
default_index=1,
styles={
"container": {"padding": "5!important","background": 'linear-gradient(to right, rgba(67, 173, 234, 0.8), rgba(221, 122, 229, 0.8))'},
"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": 'linear-gradient(to right, rgba(67, 173, 234, 0.8), rgba(221, 122, 229, 0.8))'}
}
)
if app == "Home":
home.app()
if app=='News':
news.app()
if app=='Predict':
predict.app()
if app=='Predict Data':
predictdata.app()
if app == "Cancer Data":
cancerdata.app()
if app == 'Feedback':
feedbc.app()
if app == "Account":
account.app()
if app == 'about':
about.app()
run()