DawnC commited on
Commit
49e0e4e
1 Parent(s): 9b424e8

Update breed_comparison.py

Browse files
Files changed (1) hide show
  1. breed_comparison.py +4 -0
breed_comparison.py CHANGED
@@ -6,6 +6,10 @@ from breed_health_info import breed_health_info
6
  from breed_noise_info import breed_noise_info
7
 
8
  def create_comparison_tab(dog_breeds, get_dog_description, breed_noise_info, breed_health_info):
 
 
 
 
9
  with gr.TabItem("Breed Comparison"):
10
  gr.HTML("<p style='text-align: center;'>Select two dog breeds to compare their characteristics and care requirements.</p>")
11
 
 
6
  from breed_noise_info import breed_noise_info
7
 
8
  def create_comparison_tab(dog_breeds, get_dog_description, breed_noise_info, breed_health_info):
9
+ breed_display_mapping = { breed: breed.replace('_', ' ').title() for breed in dog_breeds}
10
+ reversed_mapping = {v, k for k ,v in breed_display_mapping.items()}
11
+ sorted_display_names = sorted(breed_display_mapping.values())
12
+
13
  with gr.TabItem("Breed Comparison"):
14
  gr.HTML("<p style='text-align: center;'>Select two dog breeds to compare their characteristics and care requirements.</p>")
15