Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ module = evaluate.load("sunhill/cider")
|
|
| 11 |
|
| 12 |
def compute_cider(references, predictions):
|
| 13 |
predictions = [predictions]
|
| 14 |
-
references = [ref.strip() for ref in references.split(";") if ref.strip()]
|
| 15 |
return module.compute(predictions=predictions, references=references)["cider_score"]
|
| 16 |
|
| 17 |
|
|
|
|
| 11 |
|
| 12 |
def compute_cider(references, predictions):
|
| 13 |
predictions = [predictions]
|
| 14 |
+
references = [[ref.strip() for ref in references.split(";") if ref.strip()]]
|
| 15 |
return module.compute(predictions=predictions, references=references)["cider_score"]
|
| 16 |
|
| 17 |
|