Spaces:
Running
Running
Download patch_auth_test40.py from Leon4gr45/llama-gemma: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/Leon4gr45/llama-gemma/resolve/main/patch_auth_test40.py
- Command line
-
hf download hf://spaces/Leon4gr45/llama-gemma/patch_auth_test40.py
-
curl -L -o patch_auth_test40.py https://huggingface.co/spaces/Leon4gr45/llama-gemma/resolve/main/patch_auth_test40.py
478 Bytes
| with open("gateway.py", "r") as f: | |
| code = f.read() | |
| # Let's fix `get_is_authenticated` to properly handle anonymous requests. | |
| # Wait, my fix for "optional" mode was lost again? | |
| # Oh, I reverted my fix when I did `git reset --hard HEAD`! | |
| # Let me re-apply the optional auth fix! | |
| # And wait! What about the `llama_auth_headers()` fix that I made in `patch_auth_test38.py`? | |
| # I committed it in `dd9af4307b04acc8c3c579a4da7a92c5e61c2799`, which is the latest commit (I think?). | |