Facelook commited on
Commit
203f524
·
1 Parent(s): 49b7f52

Try Qwen2.5-Code-32B.

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,7 +14,11 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
14
  class BasicAgent:
15
  def __init__(self):
16
  print("BasicAgent initialized with smolagents.")
17
- self.agent = CodeAgent() # Initialize CodeAgent
 
 
 
 
18
 
19
  def __call__(self, question: str) -> str:
20
  print(f"Agent received question: {question[:50]}...")
 
14
  class BasicAgent:
15
  def __init__(self):
16
  print("BasicAgent initialized with smolagents.")
17
+ # Initialize CodeAgent with required 'tools' and 'model' parameters
18
+ # Using Qwen code model instead of gpt-3.5-turbo
19
+ tools = [] # Empty list of tools or define your specific tools here
20
+ model = "Qwen/Qwen2.5-Coder-32B-Instruct" # Using Qwen code model
21
+ self.agent = CodeAgent(tools=tools, model=model)
22
 
23
  def __call__(self, question: str) -> str:
24
  print(f"Agent received question: {question[:50]}...")