Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,10 @@ class BasicCodeAgent:
|
|
44 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
45 |
custom_role_conversions=None,
|
46 |
)
|
|
|
47 |
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
48 |
print("BasicCodeAgent initialized.")
|
|
|
49 |
def __call__(self, question: str) -> str:
|
50 |
print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
|
51 |
fixed_answer = "This is a default answer."
|
|
|
44 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
45 |
custom_role_conversions=None,
|
46 |
)
|
47 |
+
|
48 |
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
49 |
print("BasicCodeAgent initialized.")
|
50 |
+
|
51 |
def __call__(self, question: str) -> str:
|
52 |
print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
|
53 |
fixed_answer = "This is a default answer."
|