Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- app.py +2 -1
- youtube.py +1 -0
app.py
CHANGED
|
@@ -6,4 +6,5 @@ pg = st.navigation([
|
|
| 6 |
st.Page("youtube.py", title="Youtube Comments Analysis", icon="💬"),
|
| 7 |
])
|
| 8 |
|
| 9 |
-
pg.run()
|
|
|
|
|
|
| 6 |
st.Page("youtube.py", title="Youtube Comments Analysis", icon="💬"),
|
| 7 |
])
|
| 8 |
|
| 9 |
+
pg.run()
|
| 10 |
+
|
youtube.py
CHANGED
|
@@ -18,6 +18,7 @@ if st.button('Submit', type="secondary"):
|
|
| 18 |
if the_youtube_id:
|
| 19 |
with st.spinner("Please wait while we're loading the data..."):
|
| 20 |
the_data = get_all_comments(the_youtube_id)
|
|
|
|
| 21 |
st.markdown(f"""<p style="color: green; padding: 0; margin: 0;">Total comments: {len(the_data)}</p>""", unsafe_allow_html=True)
|
| 22 |
for data in the_data:
|
| 23 |
sentiment = random.choice(sentiments)
|
|
|
|
| 18 |
if the_youtube_id:
|
| 19 |
with st.spinner("Please wait while we're loading the data..."):
|
| 20 |
the_data = get_all_comments(the_youtube_id)
|
| 21 |
+
st.balloons()
|
| 22 |
st.markdown(f"""<p style="color: green; padding: 0; margin: 0;">Total comments: {len(the_data)}</p>""", unsafe_allow_html=True)
|
| 23 |
for data in the_data:
|
| 24 |
sentiment = random.choice(sentiments)
|