maytemuma commited on
Commit
8d3183e
·
verified ·
1 Parent(s): 6bdaab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -286,7 +286,10 @@ REASONING:
286
  ],
287
  )
288
 
289
- self.agent.system_prompt = system_prompt + "\n\n" + self.agent.system_prompt
 
 
 
290
  print("SmolAgent initialized successfully!")
291
 
292
  def __call__(self, question: str, task_id: str = None) -> str:
 
286
  ],
287
  )
288
 
289
+ # Prepend our custom system prompt to the existing one
290
+ self.agent.prompt_templates["system_prompt"] = (
291
+ system_prompt + "\n\n" + self.agent.prompt_templates["system_prompt"]
292
+ )
293
  print("SmolAgent initialized successfully!")
294
 
295
  def __call__(self, question: str, task_id: str = None) -> str: