lucaslingle commited on
Commit
df1aab3
·
verified ·
1 Parent(s): 6207a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,7 +83,7 @@ def reverse_string(text: str) -> str:
83
 
84
 
85
  # --- agent ---
86
- class Agent:
87
  def __init__(self, model_id, provider, tools, auth_imports):
88
  self.model_id = "Qwen/Qwen3-235B-A22B-Thinking-2507"
89
  self.provider = "auto"
@@ -129,7 +129,7 @@ class Agent:
129
  # --- submission code ---
130
  def run_and_submit_all( profile: gr.OAuthProfile | None):
131
  """
132
- Fetches all questions, runs the PromptedAgent on them, submits all answers,
133
  and displays the results.
134
  """
135
  # --- Determine HF Space Runtime URL and Repo URL ---
@@ -148,7 +148,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
148
 
149
  # 1. Instantiate Agent ( modify this part to create your agent)
150
  try:
151
- agent = PromptedAgent()
152
  except Exception as e:
153
  print(f"Error instantiating agent: {e}")
154
  return f"Error initializing agent: {e}", None
 
83
 
84
 
85
  # --- agent ---
86
+ class EnhancedAgent:
87
  def __init__(self, model_id, provider, tools, auth_imports):
88
  self.model_id = "Qwen/Qwen3-235B-A22B-Thinking-2507"
89
  self.provider = "auto"
 
129
  # --- submission code ---
130
  def run_and_submit_all( profile: gr.OAuthProfile | None):
131
  """
132
+ Fetches all questions, runs the EnhancedAgent on them, submits all answers,
133
  and displays the results.
134
  """
135
  # --- Determine HF Space Runtime URL and Repo URL ---
 
148
 
149
  # 1. Instantiate Agent ( modify this part to create your agent)
150
  try:
151
+ agent = EnhancedAgent()
152
  except Exception as e:
153
  print(f"Error instantiating agent: {e}")
154
  return f"Error initializing agent: {e}", None