Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 76 |
-
description=
|
| 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()
|