Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ speaker_embeddings = {
|
|
21 |
|
22 |
def getNews(search_key):
|
23 |
return requests.get ("https://newsapi.org/v2/everything?q=" +search_key+ "&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
24 |
-
# return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
25 |
|
26 |
def getHeadlines():
|
27 |
return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
|
|
21 |
|
22 |
def getNews(search_key):
|
23 |
return requests.get ("https://newsapi.org/v2/everything?q=" +search_key+ "&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
24 |
+
# return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8" )
|
25 |
|
26 |
def getHeadlines():
|
27 |
return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|