-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
31 lines (23 loc) · 758 Bytes
/
app.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
import streamlit as st
import src.pages.home
import src.pages.sources
import src.pages.exploratory
import src.pages.ml
PAGES = {
"Home": src.pages.home,
"Data sources": src.pages.sources,
"Exploratory Analysis": src.pages.exploratory,
"Machine Learning": src.pages.ml
}
def main():
st.sidebar.title("Exoplanets and habitability")
st.sidebar.title("\n\n\n\n\n\n")
st.sidebar.subheader("Navigation")
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
page = PAGES[selection]
with st.spinner(f"Loading {selection} ..."):
page.write()
st.sidebar.title("\n\n\n\n\n\n\n")
st.sidebar.info("""[Github repository](https://github.com/annaviper/exoplanets)""")
if __name__ == "__main__":
main()