File size: 417 Bytes
807725b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """Upload Ch7 (tensor dimensioning + networking) synthetic dataset to Hugging Face Hub."""
from datasets import load_dataset
from huggingface_hub import login
login()
dataset = load_dataset(
"json",
data_files="synthetic-pot-o-challenges-ch7-v1.jsonl",
split="train",
)
dataset = dataset.train_test_split(test_size=0.1)
dataset.push_to_hub("Tribewarez/synthetic-pot-o-challenges-ch7-v1", private=False)
|