Spaces:
Runtime error
Runtime error
Upload tool
Browse filesFiles changed (4)
- agent.json+8-8
- app.py+2-9
- requirements.txt+2-2
- tools/visit_webpage.py+1-1
34 unmodified lines3536373839404142433839454041424344454649474849505134 unmodified lines "name": null, "description": null, "authorized_imports": [ "time", "itertools", "pandas", "unicodedata", "re", "statistics", "math", "collections", "datetime", "random", "time", "stat", "re", "unicodedata", "pandas", "queue", "math" "statistics", "datetime", "itertools" ]}6 unmodified lines78910101112135 unmodified lines1920212222242326242825302632273435282930316 unmodified lines
model = HfApiModel(model_id='Qwen/Qwen2.5-Coder-32B-Instruct', model_id='Qwen/Qwen2.5-Coder-32B-Instruct',custom_role_conversions=None,)
5 unmodified linesagent = CodeAgent( model=model, tools=[web_search, visit_webpage, final_answer], max_steps=6, verbosity_level=1, grammar=None, planning_interval=None, name=None, description=None, authorized_imports=['time', 'itertools', 'pandas', 'unicodedata', 're', 'statistics', 'collections', 'datetime', 'random', 'stat', 'queue', 'math'], authorized_imports=['math', 'collections', 'random', 'time', 'stat', 're', 'unicodedata', 'pandas', 'queue', 'statistics', 'datetime', 'itertools'], prompts_path='./prompts.yaml')1233455duckduckgo_searchpandasmarkdownifyrequestssmolagentsduckduckgo_searchrequests123455678from typing import Any, Optionalfrom smolagents.tools import Toolimport smolagentsimport markdownifyimport requestsimport smolagents
class VisitWebpageTool(Tool): name = "visit_webpage"agent.json+8-8
app.py+2-9
requirements.txt+2-2
tools/visit_webpage.py+1-1