dianamclean commited on
Commit
8ec2795
·
verified ·
1 Parent(s): bfeb90e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -59,17 +59,17 @@ def get_things_todo(city: str) -> str:
59
 
60
  # Below is my attempt to use the structure provided
61
  @tool
62
- def my_ai_joke (arg1:str)-> str: #it's import to specify the return type
63
  """
64
  This is a tool that returns a joke
 
65
  Args:
66
- args1: what kind of joke
67
-
68
  Returns:
69
  str: returns a joke
70
  """
71
  search_tool = DuckDuckGoSearchTool()
72
- print(search_tool("Tell me a joke"))
73
  return joke
74
 
75
  final_answer = FinalAnswerTool()
 
59
 
60
  # Below is my attempt to use the structure provided
61
  @tool
62
+ def my_ai_joke() -> str:
63
  """
64
  This is a tool that returns a joke
65
+
66
  Args:
67
+
 
68
  Returns:
69
  str: returns a joke
70
  """
71
  search_tool = DuckDuckGoSearchTool()
72
+ joke = search_tool.run("Tell me a joke")
73
  return joke
74
 
75
  final_answer = FinalAnswerTool()