Update app.py
Browse files
app.py
CHANGED
|
@@ -26,14 +26,15 @@ def get_file_content_tool(task_id: str) -> str:
|
|
| 26 |
return f"File downloaded successfully as {filename}."
|
| 27 |
return f"Failed to download file for task {task_id}"
|
| 28 |
|
|
|
|
| 29 |
# 2. Initialize model and agent
|
| 30 |
model = InferenceClientModel(
|
| 31 |
-
|
| 32 |
token=os.getenv("HF_TOKEN")
|
| 33 |
)
|
| 34 |
|
| 35 |
agent = CodeAgent(
|
| 36 |
-
tools=[DuckDuckGoSearchTool()],
|
| 37 |
model=model,
|
| 38 |
max_steps=6,
|
| 39 |
verbosity_level=1
|
|
|
|
| 26 |
return f"File downloaded successfully as {filename}."
|
| 27 |
return f"Failed to download file for task {task_id}"
|
| 28 |
|
| 29 |
+
# 2. Initialize model and agent
|
| 30 |
# 2. Initialize model and agent
|
| 31 |
model = InferenceClientModel(
|
| 32 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 33 |
token=os.getenv("HF_TOKEN")
|
| 34 |
)
|
| 35 |
|
| 36 |
agent = CodeAgent(
|
| 37 |
+
tools=[DuckDuckGoSearchTool(), get_file_content_tool],
|
| 38 |
model=model,
|
| 39 |
max_steps=6,
|
| 40 |
verbosity_level=1
|