Spaces:
Sleeping
Sleeping
File size: 508 Bytes
fa189e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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")
|