llama-gemma / patch_auth_test42.py
Leon4gr45's picture
Upload folder using huggingface_hub
cedc0ef verified
Raw History Blame Contribute Delete
292 Bytes
with open("gateway.py", "r") as f:
code = f.read()
# Let's inspect `get_is_authenticated` AGAIN. I suspect the optional mode isn't correctly handling anonymous!
start_idx = code.find("def get_is_authenticated")
end_idx = code.find("def require_admin_key")
print(code[start_idx:end_idx])