jayur commited on
Commit
b2d9c95
·
verified ·
1 Parent(s): 3b11acc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def my_custom_tool(country:str, indicator:str)->str: #it's import to specify the
17
  statistic: the value of the statistic requested as a string
18
  """
19
  search = DuckDuckGoSearchRun()
20
- return f"The {indicator} of {country} is :"{str(search.invoke(f"What is the {indicator} of {country}"))}
 
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
 
17
  statistic: the value of the statistic requested as a string
18
  """
19
  search = DuckDuckGoSearchRun()
20
+ indicator_val = search.invoke(f"What is the {indicator} of {country}")
21
+ return f"The {indicator} of {country} is :"{str(indicator_val)}
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str: