SrirajHunt commited on
Commit
abfaa34
·
verified ·
1 Parent(s): 0e39102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -61,21 +61,16 @@ with open("prompts.yaml", "r") as stream:
61
  # ===== Create the Agent with all tools =====
62
  agent = CodeAgent(
63
  model=model,
64
- tools=[
65
- final_answer, # Must keep final answer tool
66
- get_current_time_in_timezone,
67
- my_custom_tool,
68
- search_tool,
69
- image_generation_tool,
70
- ],
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,
74
  planning_interval=None,
75
- name="My SmolAgent",
76
- description="An agent with search, time, image generation, and custom tools.",
77
- prompt_templates=prompt_templates,
78
  )
79
 
 
80
  # ===== Launch the Gradio UI =====
81
  GradioUI(agent).launch()
 
61
  # ===== Create the Agent with all tools =====
62
  agent = CodeAgent(
63
  model=model,
64
+ tools=[final_answer, get_current_time_in_timezone, image_generation_tool],
 
 
 
 
 
 
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,
68
  planning_interval=None,
69
+ name="MySmolAgent", # No spaces, valid Python identifier
70
+ description=None,
71
+ prompt_templates=prompt_templates
72
  )
73
 
74
+
75
  # ===== Launch the Gradio UI =====
76
  GradioUI(agent).launch()