Spaces:
Runtime error
Runtime error
Ammar-alhaj-ali
commited on
Commit
•
294e913
1
Parent(s):
e269845
Update app.py
Browse files
app.py
CHANGED
@@ -84,6 +84,7 @@ def process_image(image):
|
|
84 |
for prediction, box in zip(true_predictions, true_boxes):
|
85 |
predicted_label = iob_to_label(prediction)
|
86 |
draw.rectangle(box, outline='red') #label2color[predicted_label]
|
|
|
87 |
draw.text((box[0]+10, box[1]-10), text=predicted_label, fill='red', font=font) #label2color[predicted_label]
|
88 |
|
89 |
return image
|
|
|
84 |
for prediction, box in zip(true_predictions, true_boxes):
|
85 |
predicted_label = iob_to_label(prediction)
|
86 |
draw.rectangle(box, outline='red') #label2color[predicted_label]
|
87 |
+
print(predicted_label)
|
88 |
draw.text((box[0]+10, box[1]-10), text=predicted_label, fill='red', font=font) #label2color[predicted_label]
|
89 |
|
90 |
return image
|