Hello,
I am new to the HuggingFace space API and I am currently attempting to upload a file to my existing model repository using the upload_file API. My upload part is as below:
try:
api.upload_file(
path_or_fileobj="/home/user/app/tmp/test.zip",
path_in_repo="test.zip",
repo_id="emmajoanne/models",
repo_type="model",
)
except:
return "Upload error!"
It always falls into the except but doesn’t provide any more details.
From the official document (Upload files to the Hub) I don’t see any error handling information or what exceptions it throws.
Appreciate.