Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
73 |
|
74 |
agent = CodeAgent(
|
75 |
model=model,
|
76 |
-
tools=[final_answer,
|
77 |
max_steps=6,
|
78 |
verbosity_level=1,
|
79 |
grammar=None,
|
@@ -84,8 +84,4 @@ agent = CodeAgent(
|
|
84 |
)
|
85 |
|
86 |
|
87 |
-
|
88 |
-
try:
|
89 |
-
GradioUI(agent).launch()
|
90 |
-
except Exception as e:
|
91 |
-
print(f"Error launching GradioUI: {str(e)}")
|
|
|
73 |
|
74 |
agent = CodeAgent(
|
75 |
model=model,
|
76 |
+
tools=[final_answer,image_generation_tool,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
77 |
max_steps=6,
|
78 |
verbosity_level=1,
|
79 |
grammar=None,
|
|
|
84 |
)
|
85 |
|
86 |
|
87 |
+
GradioUI(agent).launch()
|
|
|
|
|
|
|
|