Update tools.py
Browse files
tools.py
CHANGED
|
@@ -3,6 +3,9 @@ from smolagents import Tool, tool
|
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
from smolagents.memory import ActionStep
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
# Initialize the DuckDuckGo search tool
|
|
|
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
from smolagents.memory import ActionStep
|
| 6 |
+
from PIL import Image
|
| 7 |
+
import requests
|
| 8 |
+
from io import BytesIO
|
| 9 |
|
| 10 |
|
| 11 |
# Initialize the DuckDuckGo search tool
|