HF RL Explorer

Install a global InfCode prompt guard

Install a global InfCode prompt guard: a task in UXInteract 0.1 (Harbor dataset). Implement configure hook.py . Running python configure hook.py installs a global UserPromptSubmit hook using the directory in HOME . The hook blocks prompts containing the literal text 密码 or token .

The task

Implement `configure_hook.py`. Running `python configure_hook.py` installs a global `UserPromptSubmit` hook using the directory in `HOME`. The hook blocks prompts containing the literal text `密码` or `token`.

Part of Lego-X/UXInteract.