Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- 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 |
|