Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,10 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
35 |
|
36 |
@tool
|
37 |
def fetch_news(topic: str) -> str:
|
38 |
-
"""A tool that fetches news articles based on a given topic.
|
|
|
|
|
|
|
39 |
search_url = f"https://news.google.com/search?q={topic}"
|
40 |
headers = {'User-Agent': 'Mozilla/5.0'}
|
41 |
response = requests.get(search_url, headers=headers)
|
|
|
35 |
|
36 |
@tool
|
37 |
def fetch_news(topic: str) -> str:
|
38 |
+
"""A tool that fetches news articles based on a given topic.
|
39 |
+
Args:
|
40 |
+
topic: A string with the key to be searched for.
|
41 |
+
"""
|
42 |
search_url = f"https://news.google.com/search?q={topic}"
|
43 |
headers = {'User-Agent': 'Mozilla/5.0'}
|
44 |
response = requests.get(search_url, headers=headers)
|