osanseviero commited on
Commit
2a10d49
1 Parent(s): db6e2f8

Update modules/dataset.py

Browse files
Files changed (1) hide show
  1. modules/dataset.py +2 -2
modules/dataset.py CHANGED
@@ -1,8 +1,8 @@
1
  from datasets import load_dataset
2
 
3
- dataset = load_dataset("emotion", split="train")
4
 
5
- emotions = dataset.info.features["label"].names
6
 
7
  def query_emotion(start, end):
8
  rows = dataset[start:end]
 
1
  from datasets import load_dataset
2
 
3
+ dataset = load_dataset("go_emotions", split="train")
4
 
5
+ emotions = dataset.info.features['labels'].feature.names
6
 
7
  def query_emotion(start, end):
8
  rows = dataset[start:end]