cloverhxy commited on
Commit
0bc2b4d
1 Parent(s): 8ad9b16

Update semi-heter.py

Browse files
Files changed (1) hide show
  1. semi-heter.py +1 -1
semi-heter.py CHANGED
@@ -72,7 +72,7 @@ class semiHeter(datasets.GeneratorBasedBuilder):
72
  file = json.load(f)
73
  for i in range(len(file)):
74
  yield i, {
75
- "content": file[i]
76
  }
77
  else:
78
  file = pd.read_csv(path_file)
 
72
  file = json.load(f)
73
  for i in range(len(file)):
74
  yield i, {
75
+ "content": json.dumps(file[i])
76
  }
77
  else:
78
  file = pd.read_csv(path_file)