Spaces:
Running
Running
Download plugins/_tool_access/hooks.py from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_tool_access/hooks.py
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_tool_access/hooks.py
-
curl -L -o hooks.py https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_tool_access/hooks.py
224 Bytes
| from helpers.tool_policy import normalize_policy | |
| def get_plugin_config(default=None, **kwargs): | |
| return normalize_policy(default) | |
| def save_plugin_config(settings=None, **kwargs): | |
| return normalize_policy(settings) | |