Spaces:
Configuration error
Configuration error
Download rgthree-comfy/py/utils_server.py from JasonSmithSO/FooocusEnhanced: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/JasonSmithSO/FooocusEnhanced/resolve/main/rgthree-comfy/py/utils_server.py
- Command line
-
hf download hf://spaces/JasonSmithSO/FooocusEnhanced/rgthree-comfy/py/utils_server.py
-
curl -L -o utils_server.py https://huggingface.co/spaces/JasonSmithSO/FooocusEnhanced/resolve/main/rgthree-comfy/py/utils_server.py
362 Bytes
| def get_param(request, param, default=None): | |
| """Gets a param from a request.""" | |
| return request.rel_url.query[param] if param in request.rel_url.query else default | |
| def is_param_falsy(request, param): | |
| """Determines if a param is explicitly 0 or false.""" | |
| val = get_param(request, param) | |
| return val is not None and (val == "0" or val.upper() == "FALSE") | |