Spaces:
Build error
Build error
Sasha
commited on
Commit
•
a411b51
1
Parent(s):
b9eb8ca
adding metrics
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ bleu = Bleu()
|
|
12 |
def read_markdown_file(markdown_file):
|
13 |
return Path(markdown_file).read_text()
|
14 |
|
|
|
15 |
|
16 |
def compute(data):
|
17 |
return metric.compute(predictions=data["predictions"], references=data["references"])["accuracy"]
|
|
|
12 |
def read_markdown_file(markdown_file):
|
13 |
return Path(markdown_file).read_text()
|
14 |
|
15 |
+
metrics= ['rouge','bleu']
|
16 |
|
17 |
def compute(data):
|
18 |
return metric.compute(predictions=data["predictions"], references=data["references"])["accuracy"]
|