DawnC commited on
Commit
e50c9bf
·
1 Parent(s): 68406bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -518,8 +518,11 @@ async def predict(image):
518
  draw = ImageDraw.Draw(annotated_image)
519
  font = ImageFont.load_default()
520
 
521
- dogs_info = ""
522
- buttons_html = ""
 
 
 
523
 
524
  for i, (cropped_image, detection_confidence, box) in enumerate(dogs):
525
  top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)
 
518
  draw = ImageDraw.Draw(annotated_image)
519
  font = ImageFont.load_default()
520
 
521
+ # dogs_info = ""
522
+ # buttons_html = ""
523
+
524
+ dogs_info += f'<div class="dog-info" style="border-left: 5px solid {color}; margin-bottom: 20px; padding: 15px;">'
525
+ dogs_info += f'<h2>Dog {i+1}</h2>'
526
 
527
  for i, (cropped_image, detection_confidence, box) in enumerate(dogs):
528
  top1_prob, topk_breeds, topk_probs_percent = await predict_single_dog(cropped_image)