yetessam commited on
Commit
eb85da3
·
verified ·
1 Parent(s): 794b339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -18,10 +18,6 @@ from prompts.prompts import load_prompts
18
 
19
  def initialize_agent(endpoint_uri: str):
20
 
21
- system_pt = load_prompts()
22
- print("system prompts")
23
- print(system_pt)
24
-
25
 
26
  combined_tools = load_tools() ## from the tools folder (don't remove final answer)
27
 
@@ -39,10 +35,10 @@ def initialize_agent(endpoint_uri: str):
39
  max_steps=6,
40
  verbosity_level=5,
41
  name="content_agent",
42
- system_prompt= system_pt,
43
  description="Evaluates whether text is polite or impolite.",
44
  additional_authorized_imports=["pytz"],
45
- stream_outputs=True
 
46
  )
47
 
48
  return agent
 
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
 
 
35
  max_steps=6,
36
  verbosity_level=5,
37
  name="content_agent",
 
38
  description="Evaluates whether text is polite or impolite.",
39
  additional_authorized_imports=["pytz"],
40
+ stream_outputs=True ,
41
+ prompt_templates=load_prompts(),
42
  )
43
 
44
  return agent