-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (25 loc) · 1.06 KB
/
main.py
File metadata and controls
32 lines (25 loc) · 1.06 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
import streamlit as st
from run_the_app import run_the_app
from dataloading_process import get_file_content_as_string
from eda_analysis import eda
def main():
# Render the readme as markdown using st.markdown.
readme_text = st.markdown(get_file_content_as_string("instruction.md"))
# Once we have the dependencies, add a selector for the app mode on the sidebar.
st.sidebar.title("What to do")
app_mode = st.sidebar.selectbox("Choose the app mode",
["Show instructions", "Explaintory Data Analysis", 'Unsupervised Learning', "Show the source code"])
st.sidebar.title('Model')
if app_mode == "Show instructions":
st.sidebar.success('To continue select "Explaintory Data Analysis".')
elif app_mode == "Show the source code":
readme_text.empty()
st.code(get_file_content_as_string("main.py"))
elif app_mode == "Explaintory Data Analysis":
readme_text.empty()
eda()
elif app_mode == 'Unsupervised Learning':
readme_text.empty()
run_the_app()
if __name__ == "__main__":
main()