Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -3,7 +3,8 @@ import torch
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
# Importera smolagents komponenter
|
| 6 |
-
from smolagents import ToolCallingAgent,
|
|
|
|
| 7 |
|
| 8 |
# Importera dina befintliga, anpassade verktygsfunktioner
|
| 9 |
# Se till att dessa filer (tavily_search.py, asr_tool.py, etc.) finns i samma katalog eller är korrekt importerbara.
|
|
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
# Importera smolagents komponenter
|
| 6 |
+
from smolagents import ToolCallingAgent, InferenceClientModel # <-- Ändrad här
|
| 7 |
+
from smolagents.tool_calling import Tool # <-- NY: Explicit import av Tool
|
| 8 |
|
| 9 |
# Importera dina befintliga, anpassade verktygsfunktioner
|
| 10 |
# Se till att dessa filer (tavily_search.py, asr_tool.py, etc.) finns i samma katalog eller är korrekt importerbara.
|