Update save.py

This commit is contained in:
Daniel Han-Chen 2024-02-21 00:53:17 +11:00
commit 917f791ab7

View file

@ -1191,16 +1191,15 @@ def patch_saving_functions(model):
pass
try:
out = self.original_push_to_hub(**arguments)
self.original_push_to_hub(**arguments)
except:
del arguments["tags"]
out = self.original_push_to_hub(**arguments)
self.original_push_to_hub(**arguments)
pass
if hasattr(self, "config"):
print("Saved model to https://huggingface.co/" + arguments["repo_id"])
pass
return out
'''
exec(push_to_hub_text, globals())