videos / .\upload.py
ThrustEra's picture
Upload .\upload.py with huggingface_hub
5f5de98
raw
history blame
342 Bytes
import os
import huggingface_hub
import sys
HF_TOKEN = os.getenv('HF_TOKEN')
huggingface_hub.login('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')
api = huggingface_hub.HfApi()
for file in sys.argv:
api.upload_file(
path_or_fileobj=file,
path_in_repo=file,
repo_id='ThrustEra/videos',
repo_type='dataset',
)