Nonnormalizable commited on
Commit
cc921f8
·
1 Parent(s): 6b11a89
Files changed (1) hide show
  1. tasks/text.py +2 -1
tasks/text.py CHANGED
@@ -11,7 +11,7 @@ router = APIRouter()
11
 
12
  DESCRIPTION = "Most common class baseline"
13
  ROUTE = "/text"
14
-
15
  @router.post(ROUTE, tags=["Text Task"],
16
  description=DESCRIPTION)
17
  async def evaluate_text(request: TextEvaluationRequest):
@@ -61,6 +61,7 @@ async def evaluate_text(request: TextEvaluationRequest):
61
  #predictions = [random.randint(0, 7) for _ in range(len(true_labels))]
62
 
63
  # My favorate baseline is the most common class.
 
64
  predictions = [0] * len(true_labels)
65
 
66
  #--------------------------------------------------------------------------------------------
 
11
 
12
  DESCRIPTION = "Most common class baseline"
13
  ROUTE = "/text"
14
+
15
  @router.post(ROUTE, tags=["Text Task"],
16
  description=DESCRIPTION)
17
  async def evaluate_text(request: TextEvaluationRequest):
 
61
  #predictions = [random.randint(0, 7) for _ in range(len(true_labels))]
62
 
63
  # My favorate baseline is the most common class.
64
+ true_labels = test_dataset["label"]
65
  predictions = [0] * len(true_labels)
66
 
67
  #--------------------------------------------------------------------------------------------