maytemuma commited on
Commit
01674ea
·
verified ·
1 Parent(s): 8d3183e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -244,7 +244,7 @@ class BasicAgent:
244
  temperature=0.1,
245
  )
246
 
247
- system_prompt = """You are a precise AI assistant solving GAIA benchmark questions.
248
 
249
  CRITICAL RULES FOR ANSWERING:
250
  1. Your final answer must be ONLY the answer itself — no explanations, no "The answer is", no extra words.
@@ -279,17 +279,13 @@ REASONING:
279
  ],
280
  max_steps=10,
281
  verbosity_level=1,
 
282
  additional_authorized_imports=[
283
  "json", "re", "math", "datetime", "collections",
284
  "csv", "io", "os", "tempfile", "subprocess",
285
  "base64", "hashlib", "unicodedata", "string",
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:
 
244
  temperature=0.1,
245
  )
246
 
247
+ custom_instructions = """You are a precise AI assistant solving GAIA benchmark questions.
248
 
249
  CRITICAL RULES FOR ANSWERING:
250
  1. Your final answer must be ONLY the answer itself — no explanations, no "The answer is", no extra words.
 
279
  ],
280
  max_steps=10,
281
  verbosity_level=1,
282
+ instructions=custom_instructions,
283
  additional_authorized_imports=[
284
  "json", "re", "math", "datetime", "collections",
285
  "csv", "io", "os", "tempfile", "subprocess",
286
  "base64", "hashlib", "unicodedata", "string",
287
  ],
288
  )
 
 
 
 
 
289
  print("SmolAgent initialized successfully!")
290
 
291
  def __call__(self, question: str, task_id: str = None) -> str: