Datasets:

Languages:
English
License:
severo HF staff commited on
Commit
2250a05
·
1 Parent(s): b4e4b24

Fix the class labels feature

Browse files

It should fix the dataset viewer for the "source" config. See https://huggingface.co/datasets/bigscience-biomedical/geokhoj_v1/discussions/1#6392e9d34bca25f8ee0eae41

Files changed (1) hide show
  1. geokhoj_v1.py +1 -1
geokhoj_v1.py CHANGED
@@ -99,7 +99,7 @@ class Geokhojv1Dataset(datasets.GeneratorBasedBuilder):
99
  {
100
  "id": datasets.Value("string"),
101
  "label": datasets.features.ClassLabel(
102
- names={0: "control", 1: "perturbation"}
103
  ),
104
  "text": datasets.Value("string"),
105
  }
 
99
  {
100
  "id": datasets.Value("string"),
101
  "label": datasets.features.ClassLabel(
102
+ names=["control", "perturbation"]
103
  ),
104
  "text": datasets.Value("string"),
105
  }