Spaces:
Build error
Build error
Update 01_π _Home.py
Browse files- 01_π _Home.py +15 -1
01_π _Home.py
CHANGED
@@ -44,6 +44,15 @@ refresh_stream = st.button('Refresh Stream')
|
|
44 |
if "update_but" not in st.session_state:
|
45 |
st.session_state.update_but = False
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
if "tlist" not in st.session_state:
|
48 |
st.session_state.tlist = False
|
49 |
|
@@ -92,9 +101,14 @@ if refresh_stream or st.session_state.update_but:
|
|
92 |
|
93 |
# Get all tweets
|
94 |
tweet_list = df_tweets['tweet'].tolist()
|
|
|
|
|
|
|
95 |
|
96 |
st.session_state['tlist'] =tweet_list
|
97 |
-
|
|
|
|
|
98 |
st.session_state['tdf'] = df_tweets
|
99 |
|
100 |
with st.container():
|
|
|
44 |
if "update_but" not in st.session_state:
|
45 |
st.session_state.update_but = False
|
46 |
|
47 |
+
if "topic" not in st.session_state:
|
48 |
+
st.session_state.tlist = False
|
49 |
+
|
50 |
+
if "time" not in st.session_state:
|
51 |
+
st.session_state.tlist = False
|
52 |
+
|
53 |
+
if "user" not in st.session_state:
|
54 |
+
st.session_state.tlist = False
|
55 |
+
|
56 |
if "tlist" not in st.session_state:
|
57 |
st.session_state.tlist = False
|
58 |
|
|
|
101 |
|
102 |
# Get all tweets
|
103 |
tweet_list = df_tweets['tweet'].tolist()
|
104 |
+
topic = df_tweets['topic'].tolist()
|
105 |
+
username = df_tweets['username'].tolist()
|
106 |
+
creation_time = df_tweets['creation_time'].tolist()
|
107 |
|
108 |
st.session_state['tlist'] =tweet_list
|
109 |
+
st.session_state['topic'] = topic
|
110 |
+
st.session_state['user'] = username
|
111 |
+
st.session_state['time'] = creation_time
|
112 |
st.session_state['tdf'] = df_tweets
|
113 |
|
114 |
with st.container():
|