Spaces:
Sleeping
Sleeping
Update cord_inference.py
Browse files- cord_inference.py +2 -2
cord_inference.py
CHANGED
@@ -95,11 +95,11 @@ def prediction(image):
|
|
95 |
true_words = true_words[1:-1]
|
96 |
true_confidence_scores = true_confidence_scores[1:-1]
|
97 |
|
98 |
-
|
99 |
for i, conf in enumerate(true_confidence_scores):
|
100 |
if conf < 0.5 :
|
101 |
true_predictions[i] = "O"
|
102 |
-
|
103 |
|
104 |
d = {}
|
105 |
for id, i in enumerate(true_predictions):
|
|
|
95 |
true_words = true_words[1:-1]
|
96 |
true_confidence_scores = true_confidence_scores[1:-1]
|
97 |
|
98 |
+
"""
|
99 |
for i, conf in enumerate(true_confidence_scores):
|
100 |
if conf < 0.5 :
|
101 |
true_predictions[i] = "O"
|
102 |
+
"""
|
103 |
|
104 |
d = {}
|
105 |
for id, i in enumerate(true_predictions):
|