Spaces:
Runtime error
Runtime error
Download tiny-agent/agent.py from cocolook/mcp-course-client: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/cocolook/mcp-course-client/resolve/main/tiny-agent/agent.py
- Command line
-
hf download hf://spaces/cocolook/mcp-course-client/tiny-agent/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/cocolook/mcp-course-client/resolve/main/tiny-agent/agent.py
373 Bytes
| import os | |
| from huggingface_hub import Agent | |
| agent = Agent( | |
| model="Qwen/Qwen2.5-72B-Instruct", | |
| # provider="nebius", | |
| servers=[ | |
| { | |
| "command": "npx", | |
| "args": [ | |
| "mcp-remote", | |
| "https://cocolook-mcp-course-sentiment.hf.space/gradio_api/mcp/sse" # Your Gradio MCP server | |
| ] | |
| } | |
| ], | |
| ) |