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', )