Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,8 +37,8 @@ def initialize_agent(endpoint_uri: str):
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
-
|
| 41 |
-
instructions = custom_prompts, # adds additional instructions instead of overriding default prompt
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
| 44 |
|
|
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
+
prompt_templates=custom_prompts, # override prompts
|
| 41 |
+
#instructions = custom_prompts, # adds additional instructions instead of overriding default prompt
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
| 44 |
|