kantundpeterpan commited on
Commit
168eed2
·
1 Parent(s): 5b1f749
Files changed (1) hide show
  1. tasks/text.py +1 -1
tasks/text.py CHANGED
@@ -79,6 +79,7 @@ async def evaluate_text(request: TextEvaluationRequest):
79
  # Split dataset
80
  train_test = dataset["train"].train_test_split(test_size=request.test_size, seed=request.test_seed)
81
  test_dataset = train_test["test"]
 
82
 
83
  # Start tracking emissions
84
  tracker.start()
@@ -89,7 +90,6 @@ async def evaluate_text(request: TextEvaluationRequest):
89
  # Update the code below to replace the random baseline by your model inference within the inference pass where the energy consumption and emissions are tracked.
90
  #--------------------------------------------------------------------------------------------
91
 
92
- test_df = pd.DataFrame(dataset['test'])
93
 
94
  #download model
95
  download(repo_id = "kantundpeterpan/frugal-ai-toy", dst = "skops_test")
 
79
  # Split dataset
80
  train_test = dataset["train"].train_test_split(test_size=request.test_size, seed=request.test_seed)
81
  test_dataset = train_test["test"]
82
+ test_df = pd.DataFrame(test_dataset)
83
 
84
  # Start tracking emissions
85
  tracker.start()
 
90
  # Update the code below to replace the random baseline by your model inference within the inference pass where the energy consumption and emissions are tracked.
91
  #--------------------------------------------------------------------------------------------
92
 
 
93
 
94
  #download model
95
  download(repo_id = "kantundpeterpan/frugal-ai-toy", dst = "skops_test")