loodvanniekerkginkgo commited on
Commit
e059a0b
·
1 Parent(s): bcba17d

Not using indents because it breaks jsonl

Browse files
Files changed (1) hide show
  1. submit.py +2 -1
submit.py CHANGED
@@ -40,7 +40,8 @@ def upload_submission(
40
  "anonymous": anonymous,
41
  }
42
  with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
43
- json.dump(record, tmp, indent=2)
 
44
  tmp.flush()
45
  tmp_name = tmp.name
46
 
 
40
  "anonymous": anonymous,
41
  }
42
  with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
43
+ # json.dump(record, tmp, indent=2)
44
+ json.dump(record, tmp) # Note: No indent because indents and large text contents cause this error: https://github.com/huggingface/datasets/issues/3227
45
  tmp.flush()
46
  tmp_name = tmp.name
47