DawnC commited on
Commit
5dbf79c
β€’
1 Parent(s): 7635502

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -16
app.py CHANGED
@@ -337,7 +337,9 @@ async def predict(image):
337
  <strong>Size Categories:</strong><br>
338
  β€’ Small: Under 20 pounds<br>
339
  β€’ Medium: 20-60 pounds<br>
340
- β€’ Large: Over 60 pounds
 
 
341
  </span>
342
  </span>
343
  <span class="value">{description['Size']}</span>
@@ -349,9 +351,10 @@ async def predict(image):
349
  <span class="tooltip-icon">β“˜</span>
350
  <span class="tooltip-text">
351
  <strong>Average Lifespan:</strong><br>
352
- β€’ Typical range for most breeds<br>
353
- β€’ Varies based on care and genetics<br>
354
- β€’ Regular vet check-ups recommended
 
355
  </span>
356
  </span>
357
  <span class="value">{description['Lifespan']}</span>
@@ -385,9 +388,10 @@ async def predict(image):
385
  <span class="tooltip-icon">β“˜</span>
386
  <span class="tooltip-text">
387
  <strong>Exercise Needs:</strong><br>
388
- β€’ High: 2+ hours of daily exercise<br>
389
  β€’ Moderate: 1-2 hours of daily activity<br>
390
- β€’ Low: Short walks and play sessions
 
391
  </span>
392
  </span>
393
  <span class="value">{description['Exercise Needs']}</span>
@@ -399,9 +403,10 @@ async def predict(image):
399
  <span class="tooltip-icon">β“˜</span>
400
  <span class="tooltip-text">
401
  <strong>Grooming Requirements:</strong><br>
402
- β€’ High: Daily brushing, regular professional care<br>
403
  β€’ Moderate: Weekly brushing, occasional grooming<br>
404
- β€’ Low: Minimal brushing, basic maintenance
 
405
  </span>
406
  </span>
407
  <span class="value">{description['Grooming Needs']}</span>
@@ -413,9 +418,10 @@ async def predict(image):
413
  <span class="tooltip-icon">β“˜</span>
414
  <span class="tooltip-text">
415
  <strong>Care Level Explained:</strong><br>
416
- β€’ High: Needs significant training and attention<br>
417
  β€’ Moderate: Regular care and routine needed<br>
418
- β€’ Low: More independent, basic care sufficient
 
419
  </span>
420
  </span>
421
  <span class="value">{description['Care Level']}</span>
@@ -428,7 +434,7 @@ async def predict(image):
428
  <div class="family-section">
429
  <div class="info-item">
430
  <span class="tooltip">
431
- <span class="icon">πŸ‘Ά</span>
432
  <span class="label">Good with Children:</span>
433
  <span class="tooltip-icon">β“˜</span>
434
  <span class="tooltip-text">
@@ -752,21 +758,22 @@ async def predict(image):
752
  .tooltip .tooltip-text {{
753
  visibility: hidden;
754
  width: 250px;
755
- background-color: #2c3e50;
756
  color: white;
757
  text-align: left;
758
  border-radius: 8px;
759
- padding: 12px;
760
  position: absolute;
761
  z-index: 100;
762
- bottom: 125%;
763
  left: 50%;
764
  transform: translateX(-50%);
765
  opacity: 0;
766
  transition: all 0.3s ease;
767
  font-size: 14px;
768
- line-height: 1.4;
769
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
770
  }}
771
 
772
  .tooltip:hover .tooltip-text {{
 
337
  <strong>Size Categories:</strong><br>
338
  β€’ Small: Under 20 pounds<br>
339
  β€’ Medium: 20-60 pounds<br>
340
+ β€’ Large: Over 60 pounds<br>
341
+ β€’ Giant: Over 100 pounds<br>
342
+ β€’ Varies: Depends on variety
343
  </span>
344
  </span>
345
  <span class="value">{description['Size']}</span>
 
351
  <span class="tooltip-icon">β“˜</span>
352
  <span class="tooltip-text">
353
  <strong>Average Lifespan:</strong><br>
354
+ β€’ Short: 6-8 years<br>
355
+ β€’ Average: 10-15 years<br>
356
+ β€’ Long: 12-20 years<br>
357
+ β€’ Varies by size: Larger breeds typically have shorter lifespans
358
  </span>
359
  </span>
360
  <span class="value">{description['Lifespan']}</span>
 
388
  <span class="tooltip-icon">β“˜</span>
389
  <span class="tooltip-text">
390
  <strong>Exercise Needs:</strong><br>
391
+ β€’ Low: Short walks and play sessions<br>
392
  β€’ Moderate: 1-2 hours of daily activity<br>
393
+ β€’ High: Extensive exercise (2+ hours/day)<br>
394
+ β€’ Very High: Constant activity and mental stimulation needed
395
  </span>
396
  </span>
397
  <span class="value">{description['Exercise Needs']}</span>
 
403
  <span class="tooltip-icon">β“˜</span>
404
  <span class="tooltip-text">
405
  <strong>Grooming Requirements:</strong><br>
406
+ β€’ Low: Basic brushing, occasional baths<br>
407
  β€’ Moderate: Weekly brushing, occasional grooming<br>
408
+ β€’ High: Daily brushing, frequent professional grooming needed<br>
409
+ β€’ Professional care recommended for all levels
410
  </span>
411
  </span>
412
  <span class="value">{description['Grooming Needs']}</span>
 
418
  <span class="tooltip-icon">β“˜</span>
419
  <span class="tooltip-text">
420
  <strong>Care Level Explained:</strong><br>
421
+ β€’ Low: Basic care and attention needed<br>
422
  β€’ Moderate: Regular care and routine needed<br>
423
+ β€’ High: Significant time and attention needed<br>
424
+ β€’ Very High: Extensive care, training and attention required
425
  </span>
426
  </span>
427
  <span class="value">{description['Care Level']}</span>
 
434
  <div class="family-section">
435
  <div class="info-item">
436
  <span class="tooltip">
437
+ <span class="icon"></span>
438
  <span class="label">Good with Children:</span>
439
  <span class="tooltip-icon">β“˜</span>
440
  <span class="tooltip-text">
 
758
  .tooltip .tooltip-text {{
759
  visibility: hidden;
760
  width: 250px;
761
+ background-color: rgba(44, 62, 80, 0.95);
762
  color: white;
763
  text-align: left;
764
  border-radius: 8px;
765
+ padding: 15px;
766
  position: absolute;
767
  z-index: 100;
768
+ bottom: 130%;
769
  left: 50%;
770
  transform: translateX(-50%);
771
  opacity: 0;
772
  transition: all 0.3s ease;
773
  font-size: 14px;
774
+ line-height: 1.6;
775
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
776
+ border: 1px solid rgba(255, 255, 255, 0.1);
777
  }}
778
 
779
  .tooltip:hover .tooltip-text {{