Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -657,14 +657,15 @@ def comprehensive_healthspan_analysis(input_type, image_input, video_input, bree
|
|
657 |
{pace:.2f}× ({pace_status})</span></p>"""
|
658 |
|
659 |
report_html += f"""
|
660 |
-
<div style="border: 2px solid #
|
661 |
-
<h3 style="color: #000000; margin: 0 0 15px 0; font-weight:
|
662 |
-
<p style="margin: 8px 0; color: #000000;"><strong>Detected Breed:</strong> <span style="color: #000000; font-weight:
|
663 |
-
<p style="margin: 8px 0; color: #000000;"><strong>Estimated Biological Age:</strong> <span style="color: #000000; font-weight:
|
664 |
-
<p style="margin: 8px 0; color: #000000;"><strong>Chronological Age:</strong> <span style="color: #000000; font-weight:
|
665 |
{pace_info}
|
666 |
</div>
|
667 |
"""
|
|
|
668 |
|
669 |
# Add video-specific analysis if available
|
670 |
if video_features:
|
|
|
657 |
{pace:.2f}× ({pace_status})</span></p>"""
|
658 |
|
659 |
report_html += f"""
|
660 |
+
<div style="border: 2px solid #333333; padding: 20px; border-radius: 12px; margin: 20px 0; background: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
661 |
+
<h3 style="color: #000000; margin: 0 0 15px 0; font-weight: 700; border-bottom: 2px solid #333333; padding-bottom: 8px;">{input_type_icon} Visual Analysis</h3>
|
662 |
+
<p style="margin: 8px 0; color: #000000; font-weight: 500;"><strong style="color: #000000;">Detected Breed:</strong> <span style="color: #000000; font-weight: 700;">{breed_info['breed']}</span> <span style="background: #333333; color: #ffffff; padding: 2px 6px; border-radius: 8px; font-size: 0.9em;">({breed_info['confidence']:.1%} confidence)</span></p>
|
663 |
+
<p style="margin: 8px 0; color: #000000; font-weight: 500;"><strong style="color: #000000;">Estimated Biological Age:</strong> <span style="color: #000000; font-weight: 700;">{breed_info['bio_age']} years</span></p>
|
664 |
+
<p style="margin: 8px 0; color: #000000; font-weight: 500;"><strong style="color: #000000;">Chronological Age:</strong> <span style="color: #000000; font-weight: 700;">{age or 'Not provided'} years</span></p>
|
665 |
{pace_info}
|
666 |
</div>
|
667 |
"""
|
668 |
+
|
669 |
|
670 |
# Add video-specific analysis if available
|
671 |
if video_features:
|