from datasets import Dataset, DatasetDict
from huggingface_hub import HfApi

# Create the dataset
data = [
    {"text": "I loved this movie! It was fantastic!", "label": 1},
    {"text": "Terrible film. Would not recommend.", "label": 0},
    {"text": "Amazing cinematography, but the plot was weak.", "label": 1},
    {"text": "I fell asleep halfway through. Very boring.", "label": 0}
]

dataset = Dataset.from_list(data)

# Push dataset to Hugging Face
dataset.push_to_hub("louiecerv/sentiment_analysis")