Spaces:
Runtime error
Runtime error
Upload tool
Browse filesFiles changed (4)
- agent.json+7-7
- app.py+4-4
- requirements.txt+1-1
- tools/visit_webpage.py+1-1
34 unmodified lines35363738394038394043414245464344454647494849505134 unmodified lines "name": null, "description": null, "authorized_imports": [ "statistics", "unicodedata", "collections", "pandas", "queue", "time", "pandas", "itertools", "stat", "random", "datetime", "re", "unicodedata", "statistics", "random", "math", "itertools" "collections", "datetime" ]}12345645678915 unmodified lines2526272828293031
from smolagents import GradioUI, CodeAgent, HfApiModel
from scripts.web_search import DuckDuckGoSearchToolfrom scripts.visit_webpage import VisitWebpageToolfrom scripts.final_answer import FinalAnswerToolfrom tools.web_search import DuckDuckGoSearchToolfrom tools.visit_webpage import VisitWebpageToolfrom tools.final_answer import FinalAnswerTool
model = HfApiModel(15 unmodified lines planning_interval=None, name=None, description=None, authorized_imports=['statistics', 'unicodedata', 'collections', 'queue', 'time', 'pandas', 'stat', 'random', 'datetime', 're', 'math', 'itertools'], authorized_imports=['pandas', 'queue', 'time', 'itertools', 'stat', 're', 'unicodedata', 'statistics', 'random', 'math', 'collections', 'datetime'], prompts_path='./prompts.yaml')
112345smolagentsrequestspandasmarkdownifyduckduckgo_searchsmolagents123445678from typing import Any, Optionalfrom smolagents.tools import Toolimport requestsimport smolagentsimport markdownifyimport smolagents
class VisitWebpageTool(Tool): name = "visit_webpage"agent.json+7-7
app.py+4-4
requirements.txt+1-1
tools/visit_webpage.py+1-1