Spaces:
Sleeping
Sleeping
Update cord_inference.py
Browse files- cord_inference.py +1 -1
cord_inference.py
CHANGED
@@ -70,6 +70,6 @@ def prediction(image):
|
|
70 |
|
71 |
for prediction, box, confidence in zip(true_predictions, true_boxes, true_confidence_scores):
|
72 |
draw.rectangle(box)
|
73 |
-
draw.text((box[0]+10, box[1]-10), text=prediction+ ", "+ confidence, font=font, fill="black", font_size="15")
|
74 |
|
75 |
return d, image
|
|
|
70 |
|
71 |
for prediction, box, confidence in zip(true_predictions, true_boxes, true_confidence_scores):
|
72 |
draw.rectangle(box)
|
73 |
+
draw.text((box[0]+10, box[1]-10), text=prediction+ ", "+ str(confidence), font=font, fill="black", font_size="15")
|
74 |
|
75 |
return d, image
|