mihaigheorghe commited on
Commit
b5f8752
·
verified ·
1 Parent(s): f893c55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -34,6 +34,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
36
 
 
 
 
37
 
38
  final_answer = FinalAnswerTool()
39
 
@@ -56,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- tools=[final_answer, DuckDuckGoSearchTool, image_generation_tool], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
36
 
37
+ @tool
38
+ DuckDuckGoSearchTool
39
+
40
 
41
  final_answer = FinalAnswerTool()
42
 
 
59
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[final_answer, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,