Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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 |
|