Spaces:
Running
Running
Update Space (evaluate main: e4a27243)
Browse files- requirements.txt +1 -1
- squad.py +5 -1
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
|
squad.py
CHANGED
@@ -67,11 +67,15 @@ Examples:
|
|
67 |
|
68 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
69 |
class Squad(evaluate.Metric):
|
70 |
-
|
|
|
|
|
|
|
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")},
|
|
|
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")},
|