beragis commited on
Commit
50f60af
·
verified ·
1 Parent(s): bd63ec1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,13 +34,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
- def get_movie_line(movie_line: str) -> str:
38
- """A tool that gets the movie line from a movie.
39
  Args:
40
- movie_line: The result of the text
41
  """
42
 
43
- return DuckDuckGoSearchTool(f"What movie is the following line from? '{movie_line}''")
44
 
45
  final_answer = FinalAnswerTool()
46
 
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
+ def search_duck_duck_go(search_str: str) -> str:
38
+ """A tool that searches DuckDuckGo
39
  Args:
40
+ search_str: The result of the text
41
  """
42
 
43
+ return DuckDuckGoSearchTool(search_str)
44
 
45
  final_answer = FinalAnswerTool()
46