ThrustEra commited on
Commit
5f5de98
1 Parent(s): 9f61f64

Upload .\upload.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. .//upload.py +14 -0
.//upload.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import huggingface_hub
3
+ import sys
4
+
5
+ HF_TOKEN = os.getenv('HF_TOKEN')
6
+ huggingface_hub.login('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')
7
+ api = huggingface_hub.HfApi()
8
+ for file in sys.argv:
9
+ api.upload_file(
10
+ path_or_fileobj=file,
11
+ path_in_repo=file,
12
+ repo_id='ThrustEra/videos',
13
+ repo_type='dataset',
14
+ )