priyar84 commited on
Commit
92eb9da
·
verified ·
1 Parent(s): 179c0d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,7 +58,7 @@ with open("prompts.yaml", 'r') as stream:
58
 
59
  agent = CodeAgent(
60
  model=model,
61
- tools=[final_answer,my_image_tool], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
@@ -67,6 +67,7 @@ agent = CodeAgent(
67
  description=None,
68
  prompt_templates=prompt_templates
69
  )
70
-
 
71
 
72
  GradioUI(agent).launch()
 
58
 
59
  agent = CodeAgent(
60
  model=model,
61
+ tools=[final_answer], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
67
  description=None,
68
  prompt_templates=prompt_templates
69
  )
70
+ final_answer = agent.run("What is the cube of 2?")
71
+ print(final_answer)
72
 
73
  GradioUI(agent).launch()