Update app.py
Browse files82 unmodified lines8384858687888939 unmodified lines12913013113213313413512 unmodified lines14814915015115215315482 unmodified lines# --- agent ---class Agent:def __init__(self, model_id, provider, tools, auth_imports):self.model_id = "Qwen/Qwen3-235B-A22B-Thinking-2507"self.provider = "auto"39 unmodified lines# --- submission code ---def run_and_submit_all( profile: gr.OAuthProfile | None):"""Fetches all questions, runs the PromptedAgent on them, submits all answers,and displays the results."""# --- Determine HF Space Runtime URL and Repo URL ---12 unmodified lines# 1. Instantiate Agent ( modify this part to create your agent)try:agent = PromptedAgent()except Exception as e:print(f"Error instantiating agent: {e}")return f"Error initializing agent: {e}", None82 unmodified lines8384858687888939 unmodified lines12913013113213313413512 unmodified lines14814915015115215315482 unmodified lines# --- agent ---class EnhancedAgent:def __init__(self, model_id, provider, tools, auth_imports):self.model_id = "Qwen/Qwen3-235B-A22B-Thinking-2507"self.provider = "auto"39 unmodified lines# --- submission code ---def run_and_submit_all( profile: gr.OAuthProfile | None):"""Fetches all questions, runs the EnhancedAgent on them, submits all answers,and displays the results."""# --- Determine HF Space Runtime URL and Repo URL ---12 unmodified lines# 1. Instantiate Agent ( modify this part to create your agent)try:agent = EnhancedAgent()except Exception as e:print(f"Error instantiating agent: {e}")return f"Error initializing agent: {e}", None
app.py+3-3