Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,11 +4,6 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
-
from smolagents.tools import (
|
| 8 |
-
WebScrapingTool,
|
| 9 |
-
CalculatorTool,
|
| 10 |
-
FileReadTool
|
| 11 |
-
)
|
| 12 |
|
| 13 |
from Gradio_UI import GradioUI
|
| 14 |
|
|
@@ -91,12 +86,11 @@ wiki_tool = load_tool("agents-course/wiki-search", trust_remote_code=True)
|
|
| 91 |
|
| 92 |
all_tools = [
|
| 93 |
final_answer,
|
| 94 |
-
DuckDuckGoSearchTool(), #
|
| 95 |
-
WebScrapingTool(), # Pre-made scraping
|
| 96 |
-
CalculatorTool(), # Pre-made calculator
|
| 97 |
image_generation_tool,
|
| 98 |
weather_tool,
|
| 99 |
wiki_tool,
|
|
|
|
| 100 |
get_current_time_in_timezone,
|
| 101 |
currency_converter,
|
| 102 |
website_availability,
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
|
|
| 86 |
|
| 87 |
all_tools = [
|
| 88 |
final_answer,
|
| 89 |
+
DuckDuckGoSearchTool(), # Built-in search
|
|
|
|
|
|
|
| 90 |
image_generation_tool,
|
| 91 |
weather_tool,
|
| 92 |
wiki_tool,
|
| 93 |
+
calculator_tool, # Hub-loaded calculator
|
| 94 |
get_current_time_in_timezone,
|
| 95 |
currency_converter,
|
| 96 |
website_availability,
|