Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,8 +389,10 @@ def main():
|
|
| 389 |
|
| 390 |
# Overall introduction to the app
|
| 391 |
st.write(
|
| 392 |
-
"
|
| 393 |
-
"
|
|
|
|
|
|
|
| 394 |
)
|
| 395 |
|
| 396 |
with st.sidebar.expander("Navigation and Options", expanded=True):
|
|
@@ -435,21 +437,21 @@ def main():
|
|
| 435 |
st.session_state.change_top_n = top_n
|
| 436 |
|
| 437 |
if page == "Historical Sentiment":
|
| 438 |
-
st.header("Historical Social Sentiment")
|
| 439 |
if st.session_state.historical_run:
|
| 440 |
run_historical_sentiment(st.session_state.historical_ticker)
|
| 441 |
else:
|
| 442 |
st.info("Enter a ticker and click the button.")
|
| 443 |
|
| 444 |
elif page == "Trending Sentiment":
|
| 445 |
-
st.header("Trending Social Sentiment")
|
| 446 |
if st.session_state.trending_run:
|
| 447 |
run_trending_sentiment(st.session_state.trending_top_n)
|
| 448 |
else:
|
| 449 |
st.info("Pick a top N and click the button.")
|
| 450 |
|
| 451 |
elif page == "Sentiment Change":
|
| 452 |
-
st.header("Social Sentiment Change")
|
| 453 |
if st.session_state.change_run:
|
| 454 |
run_change_sentiment(st.session_state.change_top_n)
|
| 455 |
else:
|
|
|
|
| 389 |
|
| 390 |
# Overall introduction to the app
|
| 391 |
st.write(
|
| 392 |
+
"This dashboard tracks social sentiment in three ways: "
|
| 393 |
+
"**Historical Sentiment** shows how sentiment evolved over time for a specific stock. "
|
| 394 |
+
"**Trending Sentiment** highlights the most talked-about stocks right now. "
|
| 395 |
+
"**Sentiment Change** shows which stocks have had the biggest sentiment shifts recently. "
|
| 396 |
)
|
| 397 |
|
| 398 |
with st.sidebar.expander("Navigation and Options", expanded=True):
|
|
|
|
| 437 |
st.session_state.change_top_n = top_n
|
| 438 |
|
| 439 |
if page == "Historical Sentiment":
|
| 440 |
+
#st.header("Historical Social Sentiment")
|
| 441 |
if st.session_state.historical_run:
|
| 442 |
run_historical_sentiment(st.session_state.historical_ticker)
|
| 443 |
else:
|
| 444 |
st.info("Enter a ticker and click the button.")
|
| 445 |
|
| 446 |
elif page == "Trending Sentiment":
|
| 447 |
+
#st.header("Trending Social Sentiment")
|
| 448 |
if st.session_state.trending_run:
|
| 449 |
run_trending_sentiment(st.session_state.trending_top_n)
|
| 450 |
else:
|
| 451 |
st.info("Pick a top N and click the button.")
|
| 452 |
|
| 453 |
elif page == "Sentiment Change":
|
| 454 |
+
#st.header("Social Sentiment Change")
|
| 455 |
if st.session_state.change_run:
|
| 456 |
run_change_sentiment(st.session_state.change_top_n)
|
| 457 |
else:
|