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