File size: 616 Bytes
5226902
31a5bbc
87726b6
66c6819
453eb3a
31a5bbc
87726b6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
from huggingface_hub import upload_folder, upload_file, login

token = os.environ.get("hfToken")
login(token)

repo_id = "Neon-coding/Ureola-vision"
repo_type = "dataset"

# 1. Upload parquet shards into /data
upload_folder(
    folder_path="/data/image-shards",   # your local folder
    path_in_repo="data",                # goes into /data in repo
    repo_id=repo_id,
    repo_type=repo_type
)

# 2. Upload JSON to root
upload_file(
    path_or_fileobj="/data/images_state.json",
    path_in_repo="images_state.json",
    repo_id=repo_id,
    repo_type=repo_type
)

print("Done. Structure is correct.")