Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def fetch_articles(ticker):
|
|
105 |
return [f"Error fetching articles for {ticker}: {str(e)}"]
|
106 |
|
107 |
# allowed tickers
|
108 |
-
ALLOWED_TICKERS = {"AAPL", "GOOG", "AMZN", "NVDA", "META",'TSLA','QQQ'}
|
109 |
|
110 |
# initialize cache
|
111 |
sentiment_cache = {ticker: {"article": None, "sentiment": None, "timestamp": None} for ticker in ALLOWED_TICKERS}
|
|
|
105 |
return [f"Error fetching articles for {ticker}: {str(e)}"]
|
106 |
|
107 |
# allowed tickers
|
108 |
+
ALLOWED_TICKERS = {"AAPL", "GOOG", "AMZN", "NVDA", "META",'TSLA','QQQ','SPY'}
|
109 |
|
110 |
# initialize cache
|
111 |
sentiment_cache = {ticker: {"article": None, "sentiment": None, "timestamp": None} for ticker in ALLOWED_TICKERS}
|