jjjulllesss commited on
Commit
4554339
·
verified ·
1 Parent(s): 5fa4874

Remove image generation tool

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -138,16 +138,12 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
138
  custom_role_conversions=None,
139
  )
140
 
141
-
142
- # Import tool from Hub
143
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
144
-
145
  with open("prompts.yaml", 'r') as stream:
146
  prompt_templates = yaml.safe_load(stream)
147
 
148
  agent = CodeAgent(
149
  model=model,
150
- tools=[final_answer, image_generation_tool, get_current_time_in_timezone, get_cloud_costs, get_teams], ## add your tools here (don't remove final answer)
151
  max_steps=6,
152
  verbosity_level=1,
153
  grammar=None,
 
138
  custom_role_conversions=None,
139
  )
140
 
 
 
 
 
141
  with open("prompts.yaml", 'r') as stream:
142
  prompt_templates = yaml.safe_load(stream)
143
 
144
  agent = CodeAgent(
145
  model=model,
146
+ tools=[final_answer, get_current_time_in_timezone, get_cloud_costs, get_teams], ## add your tools here (don't remove final answer)
147
  max_steps=6,
148
  verbosity_level=1,
149
  grammar=None,