Spaces:
Running
Running
Update templates/result.html
Browse files- templates/result.html +38 -3
templates/result.html
CHANGED
@@ -3,11 +3,46 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<title>AIBOM Generated</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
</head>
|
7 |
<body>
|
8 |
<a href="/">Generate another AI SBOM</a>
|
9 |
-
<h2>AI SBOM
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
<h3>
|
13 |
Download AI SBOM in CycloneDX format for {{ model_id }}
|
@@ -28,4 +63,4 @@
|
|
28 |
}
|
29 |
</script>
|
30 |
</body>
|
31 |
-
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<title>AIBOM Generated</title>
|
6 |
+
<style>
|
7 |
+
body { font-family: Arial, sans-serif; margin: 20px; }
|
8 |
+
table { border-collapse: collapse; width: 60%; margin-top: 15px; }
|
9 |
+
th, td { border: 1px solid #ddd; padding: 8px; }
|
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 |
+
<h3>Overall Completeness Score: {{ completeness_score.total_score }}%</h3>
|
20 |
+
|
21 |
+
<h3>Section Breakdown</h3>
|
22 |
+
<table>
|
23 |
+
<thead>
|
24 |
+
<tr><th>Section</th><th>Score</th></tr>
|
25 |
+
</thead>
|
26 |
+
<tbody>
|
27 |
+
{% for section, score in completeness_score.section_scores.items() %}
|
28 |
+
<tr>
|
29 |
+
<td>{{ section }}</td>
|
30 |
+
<td>{{ score }}</td>
|
31 |
+
</tr>
|
32 |
+
{% endfor %}
|
33 |
+
</tbody>
|
34 |
+
</table>
|
35 |
+
|
36 |
+
<h3>Field Checklist</h3>
|
37 |
+
<ul>
|
38 |
+
{% for field, status in completeness_score.field_checklist.items() %}
|
39 |
+
{% if status == "✔" %}
|
40 |
+
<li class="present">{{ status }} {{ field }}</li>
|
41 |
+
{% else %}
|
42 |
+
<li class="missing">{{ status }} {{ field }}</li>
|
43 |
+
{% endif %}
|
44 |
+
{% endfor %}
|
45 |
+
</ul>
|
46 |
|
47 |
<h3>
|
48 |
Download AI SBOM in CycloneDX format for {{ model_id }}
|
|
|
63 |
}
|
64 |
</script>
|
65 |
</body>
|
66 |
+
</html>
|