Spaces:
Runtime error
Runtime error
ryanrahmadifa
commited on
Commit
·
ed53591
1
Parent(s):
91cb621
Added more features.
Browse files- app.py +1 -1
- modules/data_preparation.py +1 -1
app.py
CHANGED
@@ -39,7 +39,7 @@ df_news_final = pd.concat([df_news, df_mean])
|
|
39 |
|
40 |
df_news_final.index = np.arange(1, len(df_news_final) + 1)
|
41 |
|
42 |
-
st.dataframe(df_news_final.drop(columns=['body', 'headline']).iloc[:, :
|
43 |
|
44 |
st.markdown('---')
|
45 |
|
|
|
39 |
|
40 |
df_news_final.index = np.arange(1, len(df_news_final) + 1)
|
41 |
|
42 |
+
st.dataframe(df_news_final.drop(columns=['body', 'headline']).iloc[:, : 7])
|
43 |
|
44 |
st.markdown('---')
|
45 |
|
modules/data_preparation.py
CHANGED
@@ -57,7 +57,7 @@ def plot_3dgraph(news_data):
|
|
57 |
|
58 |
fig.update_layout(
|
59 |
height=600,
|
60 |
-
title=dict(text=f"
|
61 |
font=dict(size=35),
|
62 |
automargin=False)
|
63 |
)
|
|
|
57 |
|
58 |
fig.update_layout(
|
59 |
height=600,
|
60 |
+
title=dict(text=f"News Sentiments ({datetime.datetime.now().strftime('%d/%m/%y')})<br><sup>Hover cursor on a datapoint to show news title</sup>",
|
61 |
font=dict(size=35),
|
62 |
automargin=False)
|
63 |
)
|