RohitKeswani commited on
Commit
703e373
·
verified ·
1 Parent(s): 3ab8d3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -23,12 +23,7 @@ def get_capital_city_of_country(country:str)-> str: #it's import to specify the
23
  if not search_results:
24
  return "Sorry, no results found."
25
 
26
- # Assuming the search results are a list of dictionaries (title, url, snippet)
27
- # Extract the relevant information (e.g., first result's title, snippet, or URL)
28
- first_result = search_results[0]
29
- capital_city = first_result["snippet"] # Or use first_result["title"] if more appropriate
30
-
31
- return f"The capital city of {country} is likely {capital_city}. You can read more at {first_result['url']}"
32
 
33
  @tool
34
  def get_current_time_in_timezone(timezone: str) -> str:
 
23
  if not search_results:
24
  return "Sorry, no results found."
25
 
26
+ return f"The capital city of {country} is likely {search_results}"
 
 
 
 
 
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str: