Spaces:
Running
Running
Download patch_auth_key16.py from Leon4gr45/llama-gemma: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/Leon4gr45/llama-gemma/resolve/main/patch_auth_key16.py
- Command line
-
hf download hf://spaces/Leon4gr45/llama-gemma/patch_auth_key16.py
-
curl -L -o patch_auth_key16.py https://huggingface.co/spaces/Leon4gr45/llama-gemma/resolve/main/patch_auth_key16.py
320 Bytes
| with open("gateway.py", "r") as f: | |
| code = f.read() | |
| # Let's inspect the `get_is_authenticated` function to see if it allows anonymous requests to pass through | |
| print("GET IS AUTHENTICATED:") | |
| start_idx = code.find("def get_is_authenticated") | |
| end_idx = code.find("def require_admin_key") | |
| print(code[start_idx:end_idx]) | |