yetessam commited on
Commit
46e7a7a
·
verified ·
1 Parent(s): 4a7f58e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- print(test)
 
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