Spaces:
Running
Running
| import time | |
| from smolagents import InferenceClientModel, CodeAgent | |
| with CodeAgent(model=InferenceClientModel("deepseek-ai/DeepSeek-V4-Flash"), tools=[], executor_type="e2b") as agent: | |
| agent.run("Can you give me the 100th Fibonacci number?") | |
| print("Waiting 5 seconds before shutting down sandbox...") | |
| time.sleep(5) | |