pedrofgsoares commited on
Commit
70b78d0
·
verified ·
1 Parent(s): 5336eb6

Update app.py

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