File size: 1,286 Bytes
3294074
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st
import streamlit.components.v1 as stc 

from eda_app import run_eda_app
from ml_app import run_ml_app

html_temp = """

		<div style="background-color:#3872fb;padding:10px;border-radius:10px">

		<h1 style="color:white;text-align:center;">Early Stage DM Risk Data App </h1>

		<h4 style="color:white;text-align:center;">Diabetes </h4>

		</div>

		"""
desc_temp="""

			### Early Stage Diabetes Risk Predictor App

			This dataset contains the sign and symptoms data of newly diabetic or would be diabetic patient.

			#### Datasource

				- https://archive.ics.uci.edu/ml/datasets/Early+stage+diabetes+risk+prediction+dataset.

			#### App Content

				- EDA Section: Exploratory Data Analysis of Data

				- ML Section: ML Predictor App



			"""

def main():
    #st.title("Main App")
    stc.html(html_temp)   
    menu= ["Home", "FACTS", "ML-PREDICTOR", "About"]
    choice=st.sidebar.selectbox("Menu", menu)

    if choice=="Home":
        st.subheader("Home")
        #st.write(desc_temp)
        st.markdown(desc_temp,unsafe_allow_html=True)
    elif choice=="FACTS":
        run_eda_app()
    elif choice=="ML-PREDICTOR":
        run_ml_app()
    else:
        st.subheader("About")





if __name__=="__main__":
    main()