lvwerra HF staff commited on
Commit
5d3e1fd
1 Parent(s): 2921e09

Update Space (evaluate main: 4852bcd5)

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
  3. sacrebleu.py +0 -3
app.py CHANGED
@@ -2,5 +2,5 @@ import evaluate
2
  from evaluate.utils import launch_gradio_widget
3
 
4
 
5
- module = evaluate.load("evaluate-metric/sacrebleu")
6
  launch_gradio_widget(module)
 
2
  from evaluate.utils import launch_gradio_widget
3
 
4
 
5
+ module = evaluate.load("sacrebleu")
6
  launch_gradio_widget(module)
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  # TODO: fix github to release
2
  git+https://github.com/huggingface/evaluate.git@b6e6ed7f3e6844b297bff1b43a1b4be0709b9671
3
  datasets~=2.0
4
- sacrebleu>=1.4.12
 
1
  # TODO: fix github to release
2
  git+https://github.com/huggingface/evaluate.git@b6e6ed7f3e6844b297bff1b43a1b4be0709b9671
3
  datasets~=2.0
4
+ sacrebleu
sacrebleu.py CHANGED
@@ -19,8 +19,6 @@ from packaging import version
19
 
20
  import evaluate
21
 
22
- print("test")
23
-
24
 
25
  _CITATION = """\
26
  @inproceedings{post-2018-call,
@@ -107,7 +105,6 @@ Examples:
107
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
108
  class Sacrebleu(evaluate.EvaluationModule):
109
  def _info(self):
110
- raise ValueError(scb.__file__)
111
  if version.parse(scb.__version__) < version.parse("1.4.12"):
112
  raise ImportWarning(
113
  "To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
 
19
 
20
  import evaluate
21
 
 
 
22
 
23
  _CITATION = """\
24
  @inproceedings{post-2018-call,
 
105
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
106
  class Sacrebleu(evaluate.EvaluationModule):
107
  def _info(self):
 
108
  if version.parse(scb.__version__) < version.parse("1.4.12"):
109
  raise ImportWarning(
110
  "To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"