Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,7 @@ from evaluate.utils import launch_gradio_widget
|
|
| 8 |
def caller(text,dataset="pubmed"):
|
| 9 |
metric = evaluate.load("ronaldahmed/ccl_win")
|
| 10 |
res = metric.compute(predictions=[text],dataset=dataset,use_aggregator=False,device="cpu",batch_size=16)
|
| 11 |
-
|
| 12 |
-
results = [{"coh_ccl_window":res["loc_coh_ccl"][i]} for i in range(total)]
|
| 13 |
-
ress = "CCL=" + str(results[0])
|
| 14 |
return ress
|
| 15 |
|
| 16 |
|
|
|
|
| 8 |
def caller(text,dataset="pubmed"):
|
| 9 |
metric = evaluate.load("ronaldahmed/ccl_win")
|
| 10 |
res = metric.compute(predictions=[text],dataset=dataset,use_aggregator=False,device="cpu",batch_size=16)
|
| 11 |
+
ress = "CCL=" + str(res["loc_coh_ccl"][0])
|
|
|
|
|
|
|
| 12 |
return ress
|
| 13 |
|
| 14 |
|