Spaces:
Runtime error
Runtime error
Download app.py from Julien6411/second_chapter: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/Julien6411/second_chapter/resolve/main/app.py
- Command line
-
hf download hf://spaces/Julien6411/second_chapter/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Julien6411/second_chapter/resolve/main/app.py
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.") |