Update app.py
Browse files
app.py
CHANGED
|
@@ -16,15 +16,11 @@ from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool
|
|
| 16 |
class BasicAgent:
|
| 17 |
def __init__(self):
|
| 18 |
print("Initializing Smolagent...")
|
| 19 |
-
|
| 20 |
-
You perform multi-step research to provide an accurate, concise answer.
|
| 21 |
-
IMPORTANT: Output ONLY the final answer value (number, name, or comma-separated list).
|
| 22 |
-
Do NOT include 'FINAL ANSWER:' or conversational text.
|
| 23 |
-
"""
|
| 24 |
self.agent = CodeAgent(
|
| 25 |
tools=[DuckDuckGoSearchTool()],
|
| 26 |
model=InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 27 |
-
system_prompt=system_message,
|
| 28 |
max_steps=10
|
| 29 |
)
|
| 30 |
|
|
|
|
| 16 |
class BasicAgent:
|
| 17 |
def __init__(self):
|
| 18 |
print("Initializing Smolagent...")
|
| 19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
self.agent = CodeAgent(
|
| 21 |
tools=[DuckDuckGoSearchTool()],
|
| 22 |
model=InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 23 |
+
#system_prompt=system_message,
|
| 24 |
max_steps=10
|
| 25 |
)
|
| 26 |
|