experimentation / app.py
rahulnamdev's picture
Update app.py
c31e5ec verified
raw
history blame
423 Bytes
from smolagents import CodeAgent
#from smolagents import HfApiModel
#from smolagents import DuckDuckGoSearchTool
import huggingface_hub
import os
model = huggingface_hub.HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct", token=os.getenv('Testing')
)
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")