ghomasHudson commited on
Commit
f779d7f
1 Parent(s): 5cb9a6a

Fixed list error

Browse files
Files changed (1) hide show
  1. muld.py +2 -0
muld.py CHANGED
@@ -155,4 +155,6 @@ class Muld(datasets.GeneratorBasedBuilder):
155
  row = json.loads(line)
156
  if "metadata" not in row:
157
  row["metadata"] = ""
 
 
158
  yield idx, row
 
155
  row = json.loads(line)
156
  if "metadata" not in row:
157
  row["metadata"] = ""
158
+ if not isinstance(row["output"], list):
159
+ row["output"] = [row["output"]]
160
  yield idx, row