lvwerra HF staff commited on
Commit
5e3f7a8
1 Parent(s): d09b287

Update Space (evaluate main: c447fc8e)

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. squad.py +1 -5
requirements.txt CHANGED
@@ -1 +1 @@
1
- git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
 
1
+ git+https://github.com/huggingface/evaluate@c447fc8eda9c62af501bfdc6988919571050d950
squad.py CHANGED
@@ -67,15 +67,11 @@ Examples:
67
 
68
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
69
  class Squad(evaluate.Metric):
70
-
71
- ALLOWED_CONFIG_NAMES = ["default"]
72
-
73
- def _info(self, config):
74
  return evaluate.MetricInfo(
75
  description=_DESCRIPTION,
76
  citation=_CITATION,
77
  inputs_description=_KWARGS_DESCRIPTION,
78
- config=config,
79
  features=datasets.Features(
80
  {
81
  "predictions": {"id": datasets.Value("string"), "prediction_text": datasets.Value("string")},
 
67
 
68
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
69
  class Squad(evaluate.Metric):
70
+ def _info(self):
 
 
 
71
  return evaluate.MetricInfo(
72
  description=_DESCRIPTION,
73
  citation=_CITATION,
74
  inputs_description=_KWARGS_DESCRIPTION,
 
75
  features=datasets.Features(
76
  {
77
  "predictions": {"id": datasets.Value("string"), "prediction_text": datasets.Value("string")},