Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,8 +41,11 @@ def initialize_agent(endpoint_uri: str):
|
|
| 41 |
#prompt_templates=custom_prompts, # override prompts
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
|
|
|
|
|
|
| 44 |
test = agent.prompt_templates["system_prompt"]
|
| 45 |
-
|
|
|
|
| 46 |
return agent
|
| 47 |
|
| 48 |
|
|
|
|
| 41 |
#prompt_templates=custom_prompts, # override prompts
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
| 44 |
+
|
| 45 |
+
# add our custom prompts after the basic prompts
|
| 46 |
test = agent.prompt_templates["system_prompt"]
|
| 47 |
+
agent.prompt_templates = test + "\n" + custom_prompts
|
| 48 |
+
|
| 49 |
return agent
|
| 50 |
|
| 51 |
|