second_chapter / app.py
Julien6411's picture
token
ac06337 verified
Raw
History Blame Contribute Delete
296 Bytes
from huggingface_hub import login
login(token="your_token_here")
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")