Download debug_ws/app_import.py from lhc-lab/AI-Colab: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/datasets/lhc-lab/AI-Colab/resolve/main/debug_ws/app_import.py
- Command line
-
hf download hf://datasets/lhc-lab/AI-Colab/debug_ws/app_import.py
-
curl -L -o app_import.py https://huggingface.co/datasets/lhc-lab/AI-Colab/resolve/main/debug_ws/app_import.py
293 Bytes
| from quart import Quart, websocket | |
| from core.role_binding_manager import RoleBindingManager | |
| app = Quart(__name__) | |
| async def ws_test(): | |
| print("ENTER_HANDLER") | |
| await websocket.accept() | |
| await websocket.send('ok') | |
| if __name__ == '__main__': | |
| app.run() | |