dinhquangson commited on
Commit
ee073f9
1 Parent(s): 3f0b9aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -78,6 +78,7 @@ async def create_upload_file(text_field: str, file: UploadFile = File(...)):
78
  if '.json' in file_savePath:
79
  full_dataset = load_dataset('json',
80
  data_files=file_savePath,
 
81
  cache_dir=temp_path,
82
  keep_in_memory=True,
83
  num_proc=NUM_PROC*2)
 
78
  if '.json' in file_savePath:
79
  full_dataset = load_dataset('json',
80
  data_files=file_savePath,
81
+ split="train",
82
  cache_dir=temp_path,
83
  keep_in_memory=True,
84
  num_proc=NUM_PROC*2)