yuntian-deng commited on
Commit
c2f25f8
·
verified ·
1 Parent(s): 0773644

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def predict(title, authors, abstract):
13
  #selected = [d for d in validation_data if d['score'] >= score]
14
  #true_positives = sum(1 for d in selected if d['label'] == 1)
15
  #precision = true_positives / len(selected) if selected else 0
16
- precision = 0.w
17
 
18
  result = f"For papers with a score greater than or equal to {score:.2f}, approximately {precision * 100:.2f}% are selected by AK."
19
 
 
13
  #selected = [d for d in validation_data if d['score'] >= score]
14
  #true_positives = sum(1 for d in selected if d['label'] == 1)
15
  #precision = true_positives / len(selected) if selected else 0
16
+ precision = 0.2
17
 
18
  result = f"For papers with a score greater than or equal to {score:.2f}, approximately {precision * 100:.2f}% are selected by AK."
19