Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ LABEL_MAP = {0: "bullish", 1: "bearish", 2: "neutral"}
|
|
21 |
|
22 |
# Function to fetch stock news
|
23 |
def get_stock_news(ticker):
|
24 |
-
api_key = d651109fae5346cbbb6812912c801e73
|
25 |
url = f'https://newsapi.org/v2/everything?q={ticker}&apiKey={api_key}'
|
26 |
|
27 |
response = requests.get(url)
|
|
|
21 |
|
22 |
# Function to fetch stock news
|
23 |
def get_stock_news(ticker):
|
24 |
+
api_key = "d651109fae5346cbbb6812912c801e73"
|
25 |
url = f'https://newsapi.org/v2/everything?q={ticker}&apiKey={api_key}'
|
26 |
|
27 |
response = requests.get(url)
|