yetessam commited on
Commit
13ef6a5
·
verified ·
1 Parent(s): 4a8d62a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,6 @@ from prompts import load_prompts
19
  def initialize_agent(endpoint_uri: str):
20
 
21
  # Load prompts
22
-
23
  with open("config/prompts.yaml", 'r') as stream:
24
  custom_prompts = yaml.safe_load(stream)
25
 
@@ -40,7 +39,8 @@ def initialize_agent(endpoint_uri: str):
40
  verbosity_level=3,
41
  name="content_agent",
42
  description="Evaluates whether text is polite or impolite.",
43
- prompt_templates=custom_prompts, # override prompts
 
44
  additional_authorized_imports=["pytz"]
45
  )
46
 
 
19
  def initialize_agent(endpoint_uri: str):
20
 
21
  # Load prompts
 
22
  with open("config/prompts.yaml", 'r') as stream:
23
  custom_prompts = yaml.safe_load(stream)
24
 
 
39
  verbosity_level=3,
40
  name="content_agent",
41
  description="Evaluates whether text is polite or impolite.",
42
+ #prompt_templates=custom_prompts, # override prompts
43
+ instructions = custom_prompts, # adds additional instructions instead of overriding default prompt
44
  additional_authorized_imports=["pytz"]
45
  )
46