pathii's picture
Upload folder using huggingface_hub
94a4d66 verified
raw
history blame contribute delete
350 Bytes
from datasets import Dataset
import json
import os
# JSON file load කරන්න
with open("imdb_top_250.csv", "r") as f:
data = json.load(f)
# Dataset object එකක් create කරන්න
dataset = Dataset.from_dict(data)
# Hugging Face Hub එකට push කරන්න
dataset.push_to_hub("pathii/IMDb_Top_250_Movies")