Faco24 commited on
Commit
e509da7
·
verified ·
1 Parent(s): bdcb5c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,6 +5,7 @@ import pytz
5
  import yaml
6
  import os
7
  from tools.final_answer import FinalAnswerTool
 
8
 
9
  from Gradio_UI import GradioUI
10
 
@@ -56,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- tools=[final_answer], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
5
  import yaml
6
  import os
7
  from tools.final_answer import FinalAnswerTool
8
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
9
 
10
  from Gradio_UI import GradioUI
11
 
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer], ## image_generation_tool (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,