dygoo commited on
Commit
6fd9231
·
verified ·
1 Parent(s): ec6fcf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -23,7 +23,16 @@ site_config = {
23
 
24
  @tool
25
  def get_latest_news(news_sites: List[str]) -> Dict[str,List[str]]:
26
- """ Tool returns news headlines"""
 
 
 
 
 
 
 
 
 
27
  headlines = {}
28
  for site in news_sites:
29
  try:
 
23
 
24
  @tool
25
  def get_latest_news(news_sites: List[str]) -> Dict[str,List[str]]:
26
+ """
27
+ Tool returns news headlines from multiple news sites.
28
+
29
+ Args:
30
+ news_sites (List[str]): A list of URLs of news sites to fetch headlines from.
31
+
32
+ Returns:
33
+ Dict[str, List[str]]: A dictionary where the keys are the news site URLs and the values are lists of headlines.
34
+ """
35
+
36
  headlines = {}
37
  for site in news_sites:
38
  try: