rahilv commited on
Commit
b01dea4
·
verified ·
1 Parent(s): 9aaa725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)