DawnC commited on
Commit
3101396
·
1 Parent(s): d5e1d94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)