Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files1881 unmodified lines188218831884188518861887188818891890189187 unmodified lines19791980198119821983198425 unmodified lines20102011201220132014201520161881 unmodified lines"api_key": api_key,"max_tokens": 8192,"temperature": 0.1,**common,}if "2.5" in raw_gemini or "3" in raw_gemini:kwargs["reasoning_effort"] = "low"elif model_name.startswith("huggingface/"):raw_hf = model_name[len("huggingface/"):]kwargs = {87 unmodified lines"CRITICAL OUTPUT RULES FOR EXACT MATCH EVALUATION:\n"f"- Always write valid Python code inside {code_open_tag} and {code_close_tag} tags. ""NEVER put 'Thought:' or extra markdown fences inside the code block.\n""- If the prompt includes a Task ID and mentions an image, board, diagram, or attached file, FIRST call path = download_task_file(task_id=...) and inspect it.\n""- Never call built-in open(); use read_local_file(file_path) for text/PDF/ZIP/spreadsheet files, ""inspect_image(image_path, question) for images, and transcribe_audio(audio_path, question) for audio files (.mp3, .wav).\n"25 unmodified lines"csv","pandas","numpy","urllib","html","decimal","fractions",1881 unmodified lines18821883188418851886188718881889189087 unmodified lines19781979198019811982198319841985198619871988198925 unmodified lines2015201620172018201920202021202220231881 unmodified lines"api_key": api_key,"max_tokens": 8192,"temperature": 0.1,"reasoning_effort": "low",**common,}elif model_name.startswith("huggingface/"):raw_hf = model_name[len("huggingface/"):]kwargs = {87 unmodified lines"CRITICAL OUTPUT RULES FOR EXACT MATCH EVALUATION:\n"f"- Always write valid Python code inside {code_open_tag} and {code_close_tag} tags. ""NEVER put 'Thought:' or extra markdown fences inside the code block.\n""- NEVER import or call 'subprocess', 'os.system', 'os.popen', or shell commands. ""Use the provided tools and allowed Python modules only.\n""- Always call provided tools directly as Python functions inside the code block ""(e.g. web_search(query=...), search_wikipedia(query=...), fetch_url_text(url=...), ""read_local_file(file_path=...), inspect_image(image_path=..., question=...), ""inspect_youtube(url=..., question=...), transcribe_audio(audio_path=..., question=...)).\n""- If the prompt includes a Task ID and mentions an image, board, diagram, or attached file, FIRST call path = download_task_file(task_id=...) and inspect it.\n""- Never call built-in open(); use read_local_file(file_path) for text/PDF/ZIP/spreadsheet files, ""inspect_image(image_path, question) for images, and transcribe_audio(audio_path, question) for audio files (.mp3, .wav).\n"25 unmodified lines"csv","pandas","numpy","urllib.request","urllib.parse","urllib.error","html","decimal","fractions",
app.py+10-3