File size: 342 Bytes
5f5de98
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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',
    )