Spaces:
Sleeping
Sleeping
Update app.py
Browse files243 unmodified lines24424524624724724824925028 unmodified lines279280281282283284285286287288288289290291292289290291243 unmodified lines temperature=0.1, )
system_prompt = """You are a precise AI assistant solving GAIA benchmark questions. custom_instructions = """You are a precise AI assistant solving GAIA benchmark questions.
CRITICAL RULES FOR ANSWERING:1. Your final answer must be ONLY the answer itself — no explanations, no "The answer is", no extra words.28 unmodified lines ], max_steps=10, verbosity_level=1, instructions=custom_instructions, additional_authorized_imports=[ "json", "re", "math", "datetime", "collections", "csv", "io", "os", "tempfile", "subprocess", "base64", "hashlib", "unicodedata", "string", ], )
# Prepend our custom system prompt to the existing one self.agent.prompt_templates["system_prompt"] = ( system_prompt + "\n\n" + self.agent.prompt_templates["system_prompt"] ) print("SmolAgent initialized successfully!")
def __call__(self, question: str, task_id: str = None) -> str:app.py+2-6