Carcar4 commited on
Commit
6057e3c
·
verified ·
1 Parent(s): 0ce8d4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, image_generation_tool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -59,7 +59,7 @@ except Exception as e:
59
  print(f"Test search failed: {e}")
60
  """
61
 
62
- image_generation = image_generation_tool()
63
 
64
  final_answer = FinalAnswerTool()
65
 
@@ -82,7 +82,7 @@ with open("prompts.yaml", 'r') as stream:
82
 
83
  agent = CodeAgent(
84
  model=model,
85
- tools=[final_answer, get_current_time_in_timezone, image_generation], ## add your tools here (don't remove final answer)
86
  max_steps=6,
87
  verbosity_level=1,
88
  grammar=None,
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
 
59
  print(f"Test search failed: {e}")
60
  """
61
 
62
+
63
 
64
  final_answer = FinalAnswerTool()
65
 
 
82
 
83
  agent = CodeAgent(
84
  model=model,
85
+ tools=[final_answer, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer)
86
  max_steps=6,
87
  verbosity_level=1,
88
  grammar=None,