Cannot upload by python api

Can’t upload file by huggingface python api in Space Project.
for test,I tried uploading a <1Mb file by huggingface-hub==0.16.4 and python:3.10 docker image
but it didn’t show uploading progress bar like normal ,then code end.
Log told the login successful and no error. but application finished like there was no uploading code.
Need help .
Python Code:

import huggingface_hub
huggingface_hub.HfApi().upload_file(path_or_fileobj=‘requirements.txt’, path_in_repo=‘requirements-de.txt’, repo_id='Fyaer/repo,repo_type=“dataset”)
print(“Uploaded !!!”)