Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -623,6 +623,8 @@ async def predict(image):
|
|
623 |
|
624 |
dogs_info = ""
|
625 |
all_breeds = set() # 使用集合來避免重複
|
|
|
|
|
626 |
|
627 |
for i, (cropped_image, detection_confidence, box) in enumerate(dogs):
|
628 |
top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)
|
|
|
623 |
|
624 |
dogs_info = ""
|
625 |
all_breeds = set() # 使用集合來避免重複
|
626 |
+
draw = ImageDraw.Draw(annotated_image)
|
627 |
+
font = ImageFont.load_default()
|
628 |
|
629 |
for i, (cropped_image, detection_confidence, box) in enumerate(dogs):
|
630 |
top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)
|