AlessandroMasala commited on
Commit
6ec1de7
·
verified ·
1 Parent(s): d028d56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -50,7 +50,6 @@ custom_role_conversions=None,
50
 
51
  # Import tool from Hub
52
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
53
- image_generator = load_tool("huggingface/diffusers/stable-diffusion", trust_remote_code=True)
54
 
55
 
56
  with open("prompts.yaml", 'r') as stream:
@@ -58,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
58
 
59
  agent = CodeAgent(
60
  model=model,
61
- tools=[final_answer, duckduckgo_tool, get_current_time_in_timezone, image_generation_tool, image_generator], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
50
 
51
  # Import tool from Hub
52
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
53
 
54
 
55
  with open("prompts.yaml", 'r') as stream:
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer, duckduckgo_tool, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,