Spaces:
Running
Running
Update templates/result.html
Browse files- templates/result.html +18 -1
templates/result.html
CHANGED
@@ -10,13 +10,30 @@
|
|
10 |
th { background-color: #f4f4f4; }
|
11 |
.missing { color: red; }
|
12 |
.present { color: green; }
|
|
|
|
|
|
|
13 |
</style>
|
14 |
</head>
|
15 |
<body>
|
16 |
<a href="/">Generate another AI SBOM</a>
|
17 |
<h2>AI SBOM Generated for {{ model_id }}</h2>
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
<h3>Section Breakdown</h3>
|
22 |
<table>
|
|
|
10 |
th { background-color: #f4f4f4; }
|
11 |
.missing { color: red; }
|
12 |
.present { color: green; }
|
13 |
+
.improvement { color: #2c3e50; background-color: #ecf0f1; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
|
14 |
+
.improvement-value { color: #27ae60; font-weight: bold; }
|
15 |
+
.ai-badge { background-color: #3498db; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; margin-left: 10px; }
|
16 |
</style>
|
17 |
</head>
|
18 |
<body>
|
19 |
<a href="/">Generate another AI SBOM</a>
|
20 |
<h2>AI SBOM Generated for {{ model_id }}</h2>
|
21 |
|
22 |
+
{% if enhancement_report and enhancement_report.ai_enhanced %}
|
23 |
+
<div class="improvement">
|
24 |
+
<h3>AI Enhancement Results</h3>
|
25 |
+
<p>This AIBOM was enhanced using <strong>{{ enhancement_report.ai_model }}</strong></p>
|
26 |
+
<p>Original Score: {{ enhancement_report.original_score.total_score }}/100</p>
|
27 |
+
<p>Enhanced Score: {{ enhancement_report.final_score.total_score }}/100</p>
|
28 |
+
<p>Improvement: <span class="improvement-value">+{{ enhancement_report.improvement }} points</span></p>
|
29 |
+
</div>
|
30 |
+
{% endif %}
|
31 |
+
|
32 |
+
<h3>Overall Completeness Score: {{ completeness_score.total_score }}/100
|
33 |
+
{% if enhancement_report and enhancement_report.ai_enhanced %}
|
34 |
+
<span class="ai-badge">AI Enhanced</span>
|
35 |
+
{% endif %}
|
36 |
+
</h3>
|
37 |
|
38 |
<h3>Section Breakdown</h3>
|
39 |
<table>
|