Spaces:
Sleeping
Sleeping
Update wikipediaLookup
Browse files- wikipediaLookup +2 -2
wikipediaLookup
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
from smolagents import
|
2 |
import wikipedia
|
3 |
|
4 |
@tool
|
5 |
-
class WikipediaLookupTool:
|
6 |
name = "wikipedia_lookup"
|
7 |
description = "Look up content from the English Wikipedia based on a query string."
|
8 |
|
|
|
1 |
+
from smolagents.tools import Tool
|
2 |
import wikipedia
|
3 |
|
4 |
@tool
|
5 |
+
class WikipediaLookupTool("Tool"):
|
6 |
name = "wikipedia_lookup"
|
7 |
description = "Look up content from the English Wikipedia based on a query string."
|
8 |
|