ShigatoraShuz commited on
Commit
4d2cb6f
·
verified ·
1 Parent(s): f79dcdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -44,7 +44,8 @@ def download_task_file(task_id: str) -> str:
44
  class BasicAgent:
45
  def __init__(self):
46
  model = InferenceClientModel(
47
- model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
 
48
  token=os.getenv("HF_TOKEN"),
49
  )
50
  self.agent = CodeAgent(
@@ -83,7 +84,7 @@ class BasicAgent:
83
  return cleaned.rstrip(".")
84
  except Exception as e:
85
  print(f"Agent error: {e}")
86
- return "Error"
87
 
88
 
89
  def run_and_submit_all(profile: gr.OAuthProfile | None):
 
44
  class BasicAgent:
45
  def __init__(self):
46
  model = InferenceClientModel(
47
+ model_id="Qwen/Qwen2.5-72B-Instruct",
48
+ provider="auto",
49
  token=os.getenv("HF_TOKEN"),
50
  )
51
  self.agent = CodeAgent(
 
84
  return cleaned.rstrip(".")
85
  except Exception as e:
86
  print(f"Agent error: {e}")
87
+ return f"Error: {e}"
88
 
89
 
90
  def run_and_submit_all(profile: gr.OAuthProfile | None):