from huggingface_hub import HfApi | |
from huggingface_hub import upload_file, upload_folder | |
print('set api') | |
api = HfApi() | |
print('finished') | |
upload_folder(folder_path="/data/xunzhang/fmri_3d/brain-diffuser-main/data/processed_data", repo_id="tqxg2022/nsd_datasets", repo_type="dataset", token="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") | |
print('upload finished') | |