a1c00l commited on
Commit
e68e858
·
verified ·
1 Parent(s): 8f8977d

Update templates/result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +25 -12
templates/result.html CHANGED
@@ -145,7 +145,7 @@
145
  font-weight: 600;
146
  }
147
 
148
- /* Fixed color styling for field checklist items */
149
  .check-mark { color: #27ae60; } /* Green color for check marks */
150
  .x-mark { color: #e74c3c; } /* Red color for x marks */
151
  .field-name { color: #000; } /* Black color for field names */
@@ -169,7 +169,7 @@
169
  margin-left: 10px;
170
  }
171
 
172
- /* New styles for human-friendly viewer */
173
  .aibom-viewer {
174
  margin: 20px 0;
175
  border: 1px solid #e9ecef;
@@ -359,7 +359,7 @@
359
  flex: 1;
360
  }
361
 
362
- /* New styles for improved user understanding */
363
  .tooltip {
364
  position: relative;
365
  display: inline-block;
@@ -476,7 +476,7 @@
476
  margin-right: 15px;
477
  }
478
 
479
- /* New styles for completeness profile */
480
  .completeness-profile {
481
  background-color: #e8f5e9;
482
  border-radius: 8px;
@@ -501,7 +501,7 @@
501
  .profile-advanced {
502
  background-color: #4caf50;
503
  }
504
- /* Fix for contrast issue with profile status */
505
  .profile-incomplete {
506
  background-color: #f44336;
507
  color: white; /* Ensure text is visible on red background */
@@ -532,7 +532,7 @@
532
  align-items: center;
533
  margin-right: 20px;
534
  }
535
- /* New style for validation penalty explanation */
536
  .validation-penalty-info {
537
  background-color: #fff3e0;
538
  border-left: 4px solid #ff9800;
@@ -547,7 +547,7 @@
547
  margin-bottom: 15px;
548
  }
549
 
550
- /* New section for score calculation explanation */
551
  .score-calculation {
552
  margin-top: 30px;
553
  padding: 25px;
@@ -606,7 +606,7 @@
606
  <a href="https://aetheris.ai/" target="_blank">
607
  <img src="https://huggingface.co/spaces/aetheris-ai/aibom-generator/resolve/main/templates/images/AetherisAI-logo.png" alt="Aetheris AI Logo">
608
  </a>
609
- <!-- Added header-content div -->
610
  <div class="header-content">
611
  <h1>AI SBOM Generator</h1>
612
  </div>
@@ -1060,14 +1060,27 @@
1060
  <!-- Scoring Rubric Section -->
1061
  <div class="calculation-section scoring-rubric">
1062
  <h4>Scoring Rubric</h4>
1063
- <p>The overall score is calculated using a weighted category approach:</p>
1064
- <p><strong>Total Score = (Sum of (Category Score × Category Weight)) × 100</strong></p>
1065
  <p>Where:</p>
1066
  <ul>
1067
- <li>Category Score = Sum of weights for present fields in that category</li>
1068
- <li>Category Weight = Max Category Score ÷ Sum of All Max Category Scores</li>
1069
  </ul>
1070
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1071
  <p>Fields are classified into three tiers based on importance:</p>
1072
  <ul>
1073
  <li><span class="field-tier tier-critical"></span> <strong>Critical fields</strong>: Highest weight (3-4 points each)</li>
 
145
  font-weight: 600;
146
  }
147
 
148
+ /* Color styling for field checklist items */
149
  .check-mark { color: #27ae60; } /* Green color for check marks */
150
  .x-mark { color: #e74c3c; } /* Red color for x marks */
151
  .field-name { color: #000; } /* Black color for field names */
 
169
  margin-left: 10px;
170
  }
171
 
172
+ /* Styles for human-friendly viewer */
173
  .aibom-viewer {
174
  margin: 20px 0;
175
  border: 1px solid #e9ecef;
 
359
  flex: 1;
360
  }
361
 
362
+ /* Styles for improved user understanding */
363
  .tooltip {
364
  position: relative;
365
  display: inline-block;
 
476
  margin-right: 15px;
477
  }
478
 
479
+ /* Styles for completeness profile */
480
  .completeness-profile {
481
  background-color: #e8f5e9;
482
  border-radius: 8px;
 
501
  .profile-advanced {
502
  background-color: #4caf50;
503
  }
504
+ /* Contrast with profile status */
505
  .profile-incomplete {
506
  background-color: #f44336;
507
  color: white; /* Ensure text is visible on red background */
 
532
  align-items: center;
533
  margin-right: 20px;
534
  }
535
+ /* Style for validation penalty explanation */
536
  .validation-penalty-info {
537
  background-color: #fff3e0;
538
  border-left: 4px solid #ff9800;
 
547
  margin-bottom: 15px;
548
  }
549
 
550
+ /* Section for score calculation explanation */
551
  .score-calculation {
552
  margin-top: 30px;
553
  padding: 25px;
 
606
  <a href="https://aetheris.ai/" target="_blank">
607
  <img src="https://huggingface.co/spaces/aetheris-ai/aibom-generator/resolve/main/templates/images/AetherisAI-logo.png" alt="Aetheris AI Logo">
608
  </a>
609
+ <!-- Header-content div -->
610
  <div class="header-content">
611
  <h1>AI SBOM Generator</h1>
612
  </div>
 
1060
  <!-- Scoring Rubric Section -->
1061
  <div class="calculation-section scoring-rubric">
1062
  <h4>Scoring Rubric</h4>
1063
+ <p>The overall score is calculated using a <strong>weighted normalization</strong> approach:</p>
1064
+ <p><strong>Total Score = Sum of (Section Score × Section Weight)</strong></p>
1065
  <p>Where:</p>
1066
  <ul>
1067
+ <li>Section Score = Points earned in that section</li>
1068
+ <li>Section Weight = Section's maximum points ÷ Total possible points (100)</li>
1069
  </ul>
1070
 
1071
+ <div class="note-box">
1072
+ <p><strong>Example calculation:</strong> If your SBOM has these section scores:</p>
1073
+ <ul>
1074
+ <li>Required Fields: 20 points × 0.20 weight = 4.0 points</li>
1075
+ <li>Metadata: 15 points × 0.20 weight = 3.0 points</li>
1076
+ <li>Component Basic: 10 points × 0.20 weight = 2.0 points</li>
1077
+ <li>Model Card: 10 points × 0.30 weight = 3.0 points</li>
1078
+ <li>External References: 5 points × 0.10 weight = 0.5 points</li>
1079
+ </ul>
1080
+ <p>The total score would be 12.5 points, even though the raw section scores sum to 60 points.</p>
1081
+ <p><strong>Note:</strong> The total score is <em>not</em> the sum of section scores. Each section contributes proportionally to its weight in the final score.</p>
1082
+ </div>
1083
+
1084
  <p>Fields are classified into three tiers based on importance:</p>
1085
  <ul>
1086
  <li><span class="field-tier tier-critical"></span> <strong>Critical fields</strong>: Highest weight (3-4 points each)</li>