shahbazmansahia commited on
Commit
b493950
·
verified ·
1 Parent(s): 9f39c86

Update app.py

Browse files

tweaked agent definition to try yo include the image_generation_tool in its worklfow

Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -53,9 +53,21 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
 
56
+ # agent = CodeAgent(
57
+ # model=model,
58
+ # tools=[final_answer], ## add your tools here (don't remove final answer)
59
+ # max_steps=6,
60
+ # verbosity_level=1,
61
+ # grammar=None,
62
+ # planning_interval=None,
63
+ # name=None,
64
+ # description=None,
65
+ # prompt_templates=prompt_templates
66
+ # )
67
+
68
  agent = CodeAgent(
69
  model=model,
70
+ tools=[final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,