Spaces:
Runtime error
Runtime error
simonesarti commited on
Commit ·
b5ba8b9
1
Parent(s): fb6ad5e
addedwikipediasearchtool
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, InferenceClientModel, PythonInterpreterTool, FinalAnswerTool
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
|
@@ -16,6 +16,7 @@ class BasicAgent:
|
|
| 16 |
tools = [
|
| 17 |
VisitWebpageTool(),
|
| 18 |
DuckDuckGoSearchTool(),
|
|
|
|
| 19 |
PythonInterpreterTool(),
|
| 20 |
FinalAnswerTool(),
|
| 21 |
]
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, InferenceClientModel, PythonInterpreterTool, FinalAnswerTool, WikipediaSearchTool
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
|
|
|
| 16 |
tools = [
|
| 17 |
VisitWebpageTool(),
|
| 18 |
DuckDuckGoSearchTool(),
|
| 19 |
+
WikipediaSearchTool(),
|
| 20 |
PythonInterpreterTool(),
|
| 21 |
FinalAnswerTool(),
|
| 22 |
]
|