Download app.py from left0ver/WatcherRobot-com.left0ver.agentcade: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/left0ver/WatcherRobot-com.left0ver.agentcade/resolve/main/app.py
- Command line
-
hf download hf://spaces/left0ver/WatcherRobot-com.left0ver.agentcade/app.py
-
curl -L -o app.py https://huggingface.co/spaces/left0ver/WatcherRobot-com.left0ver.agentcade/resolve/main/app.py
469 Bytes
| import asyncio | |
| import sys | |
| from pathlib import Path | |
| # 源码在 src 下,SDK 直接运行这个文件,先把 src 加进查找路径。 | |
| sys.path.insert(0, str(Path(__file__).resolve().parent / "src")) | |
| from agentcade.application import run_application | |
| from agentcade.device import DeviceContext | |
| async def main() -> None: | |
| async with DeviceContext.from_environment() as app: | |
| await run_application(app) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |