mp-02 commited on
Commit
3ba1c73
·
verified ·
1 Parent(s): dd3e908

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -63,7 +63,7 @@ def prediction(image):
63
 
64
  for prediction, box, confidence in zip(predictions, token_boxes, confidence_scores):
65
  draw.rectangle(box)
66
- draw.text((box[0]+10, box[1]-10), text=prediction+ ", "+ str(confidence), font=font, fill="black", font_size="15")
67
 
68
  return image, json_result
69
 
 
63
 
64
  for prediction, box, confidence in zip(predictions, token_boxes, confidence_scores):
65
  draw.rectangle(box)
66
+ draw.text((box[0]+10, box[1]-10), text=str(prediction)+ ", "+ str(confidence), font=font, fill="black", font_size="15")
67
 
68
  return image, json_result
69