ronaldahmed commited on
Commit
ac4be15
1 Parent(s): dcfbe98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- total = len(res["loc_coh_ccl"])
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