Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -265,7 +265,7 @@ async def predict(image):
|
|
265 |
buttons_html = ""
|
266 |
top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)
|
267 |
color = color_list[i % len(color_list)]
|
268 |
-
draw.rectangle(box, outline=color
|
269 |
draw.text((box[0] + 5, box[1] + 5) f"Dog {i+1}", fill=color, font=font)
|
270 |
|
271 |
combined_confidence = detection_confidence * top1_prob
|
|
|
265 |
buttons_html = ""
|
266 |
top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)
|
267 |
color = color_list[i % len(color_list)]
|
268 |
+
draw.rectangle(box, outline=color, width=3)
|
269 |
draw.text((box[0] + 5, box[1] + 5) f"Dog {i+1}", fill=color, font=font)
|
270 |
|
271 |
combined_confidence = detection_confidence * top1_prob
|