Remove-auth-token (#27060)
* don't use `use_auth_token`internally * let's use token everywhere * fixup
This commit is contained in:
@@ -1117,7 +1117,7 @@ params = model.init(key2, x)
|
||||
|
||||
bytes_output = serialization.to_bytes(params)
|
||||
|
||||
repo = Repository("flax-model", clone_from="flax-community/flax-model-dummy", use_auth_token=True)
|
||||
repo = Repository("flax-model", clone_from="flax-community/flax-model-dummy", token=True)
|
||||
with repo.commit("My cool Flax model :)"):
|
||||
with open("flax_model.msgpack", "wb") as f:
|
||||
f.write(bytes_output)
|
||||
|
||||
Reference in New Issue
Block a user