Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,8 @@ from prompts.prompts import load_prompts
|
|
| 18 |
|
| 19 |
def initialize_agent(endpoint_uri: str):
|
| 20 |
|
| 21 |
-
|
|
|
|
| 22 |
combined_tools = load_tools() ## from the tools folder (don't remove final answer)
|
| 23 |
|
| 24 |
"""Initialize and configure the CodeAgent"""
|
|
@@ -35,9 +36,8 @@ def initialize_agent(endpoint_uri: str):
|
|
| 35 |
max_steps=6,
|
| 36 |
verbosity_level=5,
|
| 37 |
name="content_agent",
|
| 38 |
-
system_prompt=
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
-
prompt_templates=prompt_templates, # override prompts
|
| 41 |
additional_authorized_imports=["pytz"],
|
| 42 |
stream_outputs=True
|
| 43 |
)
|
|
|
|
| 18 |
|
| 19 |
def initialize_agent(endpoint_uri: str):
|
| 20 |
|
| 21 |
+
system_pt = load_prompts()
|
| 22 |
+
|
| 23 |
combined_tools = load_tools() ## from the tools folder (don't remove final answer)
|
| 24 |
|
| 25 |
"""Initialize and configure the CodeAgent"""
|
|
|
|
| 36 |
max_steps=6,
|
| 37 |
verbosity_level=5,
|
| 38 |
name="content_agent",
|
| 39 |
+
system_prompt= system_pt
|
| 40 |
description="Evaluates whether text is polite or impolite.",
|
|
|
|
| 41 |
additional_authorized_imports=["pytz"],
|
| 42 |
stream_outputs=True
|
| 43 |
)
|