Try Qwen2.5-Code-32B.
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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]}...")
|