mp-02 commited on
Commit
7dfc92a
·
verified ·
1 Parent(s): 0326abd

Update inference.py

Browse files
Files changed (1) hide show
  1. 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, token_boxes, 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
 
 
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