Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import requests
|
| 3 |
import gradio as gr
|
| 4 |
import spaces
|
| 5 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool,
|
| 6 |
|
| 7 |
# 1. Custom tool to download files if needed for tasks
|
| 8 |
@tool
|
|
@@ -29,7 +29,7 @@ model = HfApiModel(
|
|
| 29 |
)
|
| 30 |
|
| 31 |
agent = CodeAgent(
|
| 32 |
-
tools=[DuckDuckGoSearchTool()
|
| 33 |
model=model,
|
| 34 |
max_steps=6,
|
| 35 |
verbosity_level=1
|
|
|
|
| 2 |
import requests
|
| 3 |
import gradio as gr
|
| 4 |
import spaces
|
| 5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, tool
|
| 6 |
|
| 7 |
# 1. Custom tool to download files if needed for tasks
|
| 8 |
@tool
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
agent = CodeAgent(
|
| 32 |
+
tools=[DuckDuckGoSearchTool()],
|
| 33 |
model=model,
|
| 34 |
max_steps=6,
|
| 35 |
verbosity_level=1
|