lvwerra HF staff commited on
Commit
7e6c57e
·
1 Parent(s): f54bfb2

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. xnli.py +2 -2
xnli.py CHANGED
@@ -67,9 +67,9 @@ def simple_accuracy(preds, labels):
67
 
68
 
69
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
70
- class Xnli(evaluate.EvaluationModule):
71
  def _info(self):
72
- return evaluate.EvaluationModuleInfo(
73
  description=_DESCRIPTION,
74
  citation=_CITATION,
75
  inputs_description=_KWARGS_DESCRIPTION,
 
67
 
68
 
69
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
70
+ class Xnli(evaluate.Metric):
71
  def _info(self):
72
+ return evaluate.MetricInfo(
73
  description=_DESCRIPTION,
74
  citation=_CITATION,
75
  inputs_description=_KWARGS_DESCRIPTION,