DawnC commited on
Commit
b9cfeb1
โ€ข
1 Parent(s): 0246cb3

Update html_templates.py

Browse files
Files changed (1) hide show
  1. html_templates.py +3 -3
html_templates.py CHANGED
@@ -492,7 +492,7 @@ def format_multiple_breeds_result(
492
  <div class="breeds-list" style="display: grid; gap: 20px;">
493
  '''
494
 
495
- for j, (breed, prob) in enumerate(zip(topk_breeds, relative_probs)):
496
  description = get_dog_description(breed)
497
  noise_info = breed_noise_info.get(breed, {})
498
  health_info = breed_health_info.get(breed, {})
@@ -543,7 +543,7 @@ def format_multiple_breeds_result(
543
  <div style="display: flex; align-items: center; gap: 14px;">
544
  <span style="font-size: 1.4em;">๐Ÿพ</span>
545
  <h2 style="margin: 0; font-size: 1.8em; color: #1a202c; font-weight: 600;">
546
- {'Option ' + str(j+1) + ': ' if prob else ''}{display_breeds}
547
  </h2>
548
  </div>
549
  {f'<span style="background: {color}12; color: {color}; padding: 8px 16px; border-radius: 8px; font-size: 1em; font-weight: 500; box-shadow: 0 1px 2px {color}20;">Confidence: {prob}</span>' if prob else ''}
@@ -931,7 +931,7 @@ def format_multiple_breeds_result(
931
  rel="noopener noreferrer"
932
  style="display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: linear-gradient(90deg, #4299e1, #48bb78); color: white; text-decoration: none; border-radius: 8px; font-weight: 500; transition: opacity 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
933
  <span style="font-size: 1.2em;">๐ŸŒ</span>
934
- Learn more about {display_breeds} on AKC website
935
  </a>
936
  </div>
937
  </div>
 
492
  <div class="breeds-list" style="display: grid; gap: 20px;">
493
  '''
494
 
495
+ for j, (breed, display_name, prob) in enumerate(zip(topk_breeds, display_breeds, relative_probs)):
496
  description = get_dog_description(breed)
497
  noise_info = breed_noise_info.get(breed, {})
498
  health_info = breed_health_info.get(breed, {})
 
543
  <div style="display: flex; align-items: center; gap: 14px;">
544
  <span style="font-size: 1.4em;">๐Ÿพ</span>
545
  <h2 style="margin: 0; font-size: 1.8em; color: #1a202c; font-weight: 600;">
546
+ {'Option ' + str(j+1) + ': ' if prob else ''}{display_name}
547
  </h2>
548
  </div>
549
  {f'<span style="background: {color}12; color: {color}; padding: 8px 16px; border-radius: 8px; font-size: 1em; font-weight: 500; box-shadow: 0 1px 2px {color}20;">Confidence: {prob}</span>' if prob else ''}
 
931
  rel="noopener noreferrer"
932
  style="display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: linear-gradient(90deg, #4299e1, #48bb78); color: white; text-decoration: none; border-radius: 8px; font-weight: 500; transition: opacity 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
933
  <span style="font-size: 1.2em;">๐ŸŒ</span>
934
+ Learn more about {display_name} on AKC website
935
  </a>
936
  </div>
937
  </div>