Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,16 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
4 |
-
st.
|
5 |
-
|
6 |
-
st.header("Our Mission and Plan", divider='red')
|
7 |
-
st.markdown("We're using **BERTopic** and **LDA** as baseline models.")
|
8 |
|
9 |
if "page" not in st.session_state:
|
10 |
st.session_state.page = "Home"
|
11 |
|
12 |
def navigate_to(page):
|
13 |
st.session_state.page = page
|
14 |
-
|
15 |
-
st.
|
16 |
-
col1, col2, col3, col4 = st.columns(4)
|
17 |
|
18 |
with col1:
|
19 |
if st.button("Home"):
|
@@ -31,10 +28,14 @@ with col4:
|
|
31 |
if st.button("LDA"):
|
32 |
navigate_to("LDA")
|
33 |
|
|
|
|
|
|
|
34 |
st.divider()
|
35 |
|
36 |
if st.session_state.page == "Home":
|
37 |
st.header("Home Page")
|
|
|
38 |
|
39 |
elif st.session_state.page == "Sentiment Analysis":
|
40 |
st.header("Sentiment Analysis")
|
@@ -45,10 +46,5 @@ elif st.session_state.page == "Topic Modelling":
|
|
45 |
elif st.session_state.page == "LDA":
|
46 |
st.header("Latent Dirichlet Allocation (LDA)")
|
47 |
|
48 |
-
st.
|
49 |
-
|
50 |
-
if st.button("Contact Info"):
|
51 |
-
st.session_state.page = "Contact Info"
|
52 |
-
|
53 |
-
if st.session_state.page == "Contact Info":
|
54 |
st.header("Contact Information")
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
4 |
+
#st.header("Our Mission and Plan", divider='red')
|
5 |
+
#st.markdown("We're using **BERTopic** and **LDA** as baseline models.")
|
|
|
|
|
6 |
|
7 |
if "page" not in st.session_state:
|
8 |
st.session_state.page = "Home"
|
9 |
|
10 |
def navigate_to(page):
|
11 |
st.session_state.page = page
|
12 |
+
|
13 |
+
col1, col2, col3, col4, col5 = st.columns(5)
|
|
|
14 |
|
15 |
with col1:
|
16 |
if st.button("Home"):
|
|
|
28 |
if st.button("LDA"):
|
29 |
navigate_to("LDA")
|
30 |
|
31 |
+
with col5:
|
32 |
+
if st.button("Contact Info"):
|
33 |
+
navigate_to("Contact Info")
|
34 |
st.divider()
|
35 |
|
36 |
if st.session_state.page == "Home":
|
37 |
st.header("Home Page")
|
38 |
+
st.title("Topic Modeling to Determine Climate Anxiety Among Youth")
|
39 |
|
40 |
elif st.session_state.page == "Sentiment Analysis":
|
41 |
st.header("Sentiment Analysis")
|
|
|
46 |
elif st.session_state.page == "LDA":
|
47 |
st.header("Latent Dirichlet Allocation (LDA)")
|
48 |
|
49 |
+
elif st.session_state.page == "Contact Info":
|
|
|
|
|
|
|
|
|
|
|
50 |
st.header("Contact Information")
|