Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -41,13 +41,13 @@ st.markdown("""
|
|
| 41 |
</style>
|
| 42 |
""", unsafe_allow_html=True)
|
| 43 |
|
| 44 |
-
@st.cache_data(ttl=1800) # Cache for 30 minutes
|
| 45 |
def load_config():
|
| 46 |
"""Load configuration from config.json"""
|
| 47 |
with open('config.json', 'r') as f:
|
| 48 |
return json.load(f)
|
| 49 |
|
| 50 |
-
@st.cache_data(ttl=1800) # Cache for 30 minutes
|
| 51 |
def load_news_data(query, days, sources=None, model="TextBlob"):
|
| 52 |
"""Load and cache news data"""
|
| 53 |
try:
|
|
|
|
| 41 |
</style>
|
| 42 |
""", unsafe_allow_html=True)
|
| 43 |
|
| 44 |
+
# @st.cache_data(ttl=1800) # Cache for 30 minutes
|
| 45 |
def load_config():
|
| 46 |
"""Load configuration from config.json"""
|
| 47 |
with open('config.json', 'r') as f:
|
| 48 |
return json.load(f)
|
| 49 |
|
| 50 |
+
# @st.cache_data(ttl=1800) # Cache for 30 minutes
|
| 51 |
def load_news_data(query, days, sources=None, model="TextBlob"):
|
| 52 |
"""Load and cache news data"""
|
| 53 |
try:
|