Spaces:
Runtime error
Runtime error
Download bot/bot.py from Zevol/WechatRobot: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/Zevol/WechatRobot/resolve/main/bot/bot.py
- Command line
-
hf download hf://spaces/Zevol/WechatRobot/bot/bot.py
-
curl -L -o bot.py https://huggingface.co/spaces/Zevol/WechatRobot/resolve/main/bot/bot.py
266 Bytes
| """ | |
| Auto-replay chat robot abstract class | |
| """ | |
| class Bot(object): | |
| def reply(self, query, context=None): | |
| """ | |
| bot auto-reply content | |
| :param req: received message | |
| :return: reply content | |
| """ | |
| raise NotImplementedError | |