I was trying to run
from huggingface_hub import HfApi
api = HfApi()
api.upload_file(path_or_fileobj=“…/new_model/text_encoder/pytorch_model.bin”,path_in_repo=“new_model/text_encoder”,repo_id=“…”,repo_type=“model”)
and then got the following error:
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, ConnectionResetError(54, ‘Connection reset by peer’))
The above exception was the direct cause of the following exception: