lvwerra HF staff commited on
Commit
4d5e8f8
1 Parent(s): 4a93ac4

Update Space (evaluate main: e179b5b8)

Browse files
Files changed (2) hide show
  1. README.md +4 -16
  2. app.py +1 -6
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: SacreBLEU
3
- emoji: 🤗
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
@@ -8,22 +8,10 @@ sdk_version: 3.0.2
8
  app_file: app.py
9
  pinned: false
10
  tags:
11
- - evaluate
12
- - metric
13
- description: >-
14
- SacreBLEU provides hassle-free computation of shareable, comparable, and
15
- reproducible BLEU scores.
16
-
17
- Inspired by Rico Sennrich's `multi-bleu-detok.perl`, it produces the official
18
- WMT scores but works with plain text.
19
-
20
- It also knows all the standard test sets and handles downloading, processing,
21
- and tokenization for you.
22
-
23
-
24
- See the [README.md] file at https://github.com/mjpost/sacreBLEU for more
25
- information.
26
  ---
 
27
  # Metric Card for SacreBLEU
28
 
29
 
 
1
  ---
2
  title: SacreBLEU
3
+ emoji: 🤗
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
 
8
  app_file: app.py
9
  pinned: false
10
  tags:
11
+ - evaluate
12
+ - metric
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
+
15
  # Metric Card for SacreBLEU
16
 
17
 
app.py CHANGED
@@ -1,11 +1,6 @@
1
- import sys
2
-
3
  import evaluate
4
  from evaluate.utils import launch_gradio_widget
5
 
6
 
7
- sys.path = [p for p in sys.path if p != "/home/user/app"]
8
  module = evaluate.load("sacrebleu")
9
- sys.path = ["/home/user/app"] + sys.path
10
-
11
- launch_gradio_widget(module)
 
 
 
1
  import evaluate
2
  from evaluate.utils import launch_gradio_widget
3
 
4
 
 
5
  module = evaluate.load("sacrebleu")
6
+ launch_gradio_widget(module)