rsynak commited on
Commit
4582aa8
·
verified ·
1 Parent(s): c7a38bf

update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,7 +16,9 @@ def my_custom_tool(state:str, altitude:int)-> str: #it's import to specify the r
16
  state: A string representing the state who's capital we need to identify
17
  altitude: The altitude of the state capital we've identified
18
  """
19
- return "The altitude of '{state}'s capital is '{altitude}'"
 
 
20
 
21
 
22
 
 
16
  state: A string representing the state who's capital we need to identify
17
  altitude: The altitude of the state capital we've identified
18
  """
19
+ try:
20
+ use DuckDuckGoSearchTool()
21
+ return f"The altitude of '{state}'s capital is '{altitude}'"
22
 
23
 
24