File size: 815 Bytes
6eb2dc3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st
from streamlit_option_menu import option_menu
import eda
import prediction
import about

st.write('### PREDICTION OF DEATH DUE TO HEART FAILURE')
st.write('##### This page created by [Theo Nugraha](https://github.com/theonugraha)')
st.markdown('---')

selected = option_menu(None, ["About", "EDA", "Predict"], 
    icons=['house', 'bar-chart', 'gear'], 
    menu_icon="cast", default_index=0, orientation="horizontal",
    styles={
        "icon": {"color": "red", "font-size": "15px"}, 
        "nav-link": {"font-size": "15px", "text-align": "left", "margin":"1px", "--hover-color": "#eee"},
        "nav-link-selected": {"background-color": "lightgrey"},
    }
)
    
selected
    

if selected == 'EDA':
    eda.run()
elif selected == 'Predict':
    prediction.run()
else:
    about.run()