DawnC commited on
Commit
626608d
·
1 Parent(s): d4683ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -266,7 +266,7 @@ async def predict(image):
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
272
  dogs_info += f'<div class="dog-info" style="border-left: 5px solid {color}; margin-bottom: 20px; padding: 15px;">'
 
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
272
  dogs_info += f'<div class="dog-info" style="border-left: 5px solid {color}; margin-bottom: 20px; padding: 15px;">'