Arcpolar commited on
Commit
db4c435
·
verified ·
1 Parent(s): abf435c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,16 +46,16 @@ model_id='deepseak-ai/DeepSeek-R1-Distill-Qwen-32B',
46
  custom_role_conversions=None,
47
  )
48
 
49
- search_tool = DuckDuckGoSearchTool()
50
  # Import tool from Hub
51
- image_generation_tool = load_tool("m-ric/text-to-image", trust_remote_code=True)
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[search_tool, image_generation_tool, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
46
  custom_role_conversions=None,
47
  )
48
 
49
+ # search_tool = DuckDuckGoSearchTool()
50
  # Import tool from Hub
51
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,