Spaces:
Sleeping
Sleeping
Update app.py
Browse files243 unmodified lines24424524624724824925028 unmodified lines279280281282283284285286287288289290291292293294295243 unmodified linestemperature=0.1,)system_prompt = """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,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 oneself.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:243 unmodified lines24424524624724824925028 unmodified lines279280281282283284285286287288289290291243 unmodified linestemperature=0.1,)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",],)print("SmolAgent initialized successfully!")def __call__(self, question: str, task_id: str = None) -> str:
app.py+2-6