sdeepanraj commited on
Commit
bd480be
·
verified ·
1 Parent(s): f26fc06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ class BasicAgent:
47
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
48
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
49
  """
50
- self.agent.prompt_templates = SYSTEM_PROMPT
51
 
52
  def __call__(self, question: str) -> str:
53
  print(f"Agent received question (first 50 chars): {question[:50]}...")
 
47
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
48
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
49
  """
50
+ self.agent.prompt_templates["system_prompt"] = self.agent.prompt_templates["system_prompt"] + SYSTEM_PROMPT
51
 
52
  def __call__(self, question: str) -> str:
53
  print(f"Agent received question (first 50 chars): {question[:50]}...")