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