Spaces:
Build error
Build error
David Li
commited on
Commit
•
d7fbc91
1
Parent(s):
0635432
feat: update content
Browse files- pages/economy.py +4 -0
- pages/news.py +1 -1
pages/economy.py
CHANGED
@@ -37,4 +37,8 @@ if st.button("Refresh Data"):
|
|
37 |
# output all economy tables with labels above
|
38 |
for i in range(len(economy_dfs)):
|
39 |
st.write(f"# {file_names[i]}")
|
|
|
|
|
|
|
|
|
40 |
st.write(economy_dfs[i])
|
|
|
37 |
# output all economy tables with labels above
|
38 |
for i in range(len(economy_dfs)):
|
39 |
st.write(f"# {file_names[i]}")
|
40 |
+
if file_names[i] == "debt":
|
41 |
+
st.write("General government debt-to-GDP ratio measures the gross debt of the general.")
|
42 |
+
if file_names[i] == "balance":
|
43 |
+
st.write("General government deficit is defined as the balance of income and expenditure of government.")
|
44 |
st.write(economy_dfs[i])
|
pages/news.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from openbb_terminal.common import get_news
|
3 |
|
4 |
def fetch_news(keyword):
|
5 |
# This is where you would call a news API or scrape a news website
|
|
|
1 |
import streamlit as st
|
2 |
+
from openbb_terminal.common.feedparser_model import get_news
|
3 |
|
4 |
def fetch_news(keyword):
|
5 |
# This is where you would call a news API or scrape a news website
|