Spaces:
Running
Running
Update src/ui_components_original.py
Browse files
src/ui_components_original.py
CHANGED
|
@@ -927,6 +927,10 @@ button.gr-button:hover, button.gr-button-primary:hover {
|
|
| 927 |
saved_image_path = analysis_result.get('saved_image_path', '')
|
| 928 |
|
| 929 |
wound_type = visual_analysis.get('wound_type', 'Unknown')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 930 |
length_cm = visual_analysis.get('length_cm', 0)
|
| 931 |
breadth_cm = visual_analysis.get('breadth_cm', 0)
|
| 932 |
area_cm2 = visual_analysis.get('surface_area_cm2', 0)
|
|
@@ -1030,6 +1034,14 @@ button.gr-button:hover, button.gr-button-primary:hover {
|
|
| 1030 |
<h3 style="color: #3182ce; margin: 0 0 10px 0;">Location</h3>
|
| 1031 |
<p style="font-weight: 600; font-size: 18px; color: #2d3748; margin: 0;">{html.escape(str(questionnaire_data.get('wound_location', 'Not specified')))}</p>
|
| 1032 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1033 |
</div>
|
| 1034 |
</div>
|
| 1035 |
|
|
|
|
| 927 |
saved_image_path = analysis_result.get('saved_image_path', '')
|
| 928 |
|
| 929 |
wound_type = visual_analysis.get('wound_type', 'Unknown')
|
| 930 |
+
# New AI insights
|
| 931 |
+
skin_tone_label = visual_analysis.get('skin_tone_label', 'Unknown')
|
| 932 |
+
ita_deg = visual_analysis.get('ita_degrees', None)
|
| 933 |
+
tissue_type = visual_analysis.get('tissue_type', 'Unknown')
|
| 934 |
length_cm = visual_analysis.get('length_cm', 0)
|
| 935 |
breadth_cm = visual_analysis.get('breadth_cm', 0)
|
| 936 |
area_cm2 = visual_analysis.get('surface_area_cm2', 0)
|
|
|
|
| 1034 |
<h3 style="color: #3182ce; margin: 0 0 10px 0;">Location</h3>
|
| 1035 |
<p style="font-weight: 600; font-size: 18px; color: #2d3748; margin: 0;">{html.escape(str(questionnaire_data.get('wound_location', 'Not specified')))}</p>
|
| 1036 |
</div>
|
| 1037 |
+
<div style="background: white; padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
|
| 1038 |
+
<h3 style="color: #3182ce; margin: 0 0 10px 0;">Skin Tone</h3>
|
| 1039 |
+
<p style="font-weight: 600; font-size: 18px; color: #2d3748; margin: 0;">{html.escape(str(skin_tone_label))}{f" ({ita_deg:.1f}°)" if ita_deg is not None else ""}</p>
|
| 1040 |
+
</div>
|
| 1041 |
+
<div style="background: white; padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
|
| 1042 |
+
<h3 style="color: #3182ce; margin: 0 0 10px 0;">Tissue Type</h3>
|
| 1043 |
+
<p style="font-weight: 600; font-size: 18px; color: #2d3748; margin: 0;">{html.escape(str(tissue_type))}</p>
|
| 1044 |
+
</div>
|
| 1045 |
</div>
|
| 1046 |
</div>
|
| 1047 |
|