MatthiasPi commited on
Commit
8eb4396
·
verified ·
1 Parent(s): 70467a6

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. tasks/text.py +2 -2
tasks/text.py CHANGED
@@ -50,8 +50,8 @@ async def evaluate_text(request: TextEvaluationRequest):
50
  dataset = dataset.map(lambda x: {"label": LABEL_MAPPING[x["label"]]})
51
 
52
  # Split dataset
53
- train_test = dataset["train"].train_test_split(test_size=request.test_size, seed=request.test_seed)
54
- test_dataset = train_test["test"]
55
 
56
  # Start tracking emissions
57
  tracker.start()
 
50
  dataset = dataset.map(lambda x: {"label": LABEL_MAPPING[x["label"]]})
51
 
52
  # Split dataset
53
+ train_test = dataset["train"]
54
+ test_dataset = dataset["test"]
55
 
56
  # Start tracking emissions
57
  tracker.start()