Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +131 -25
templates/index.html
CHANGED
@@ -2,73 +2,179 @@
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
|
|
5 |
<title>AI SBOM Generator</title>
|
6 |
<style>
|
7 |
-
body {
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
/* Header styling */
|
11 |
.header {
|
12 |
-
background-color: #
|
13 |
padding: 15px 20px;
|
14 |
border-bottom: 1px solid #e9ecef;
|
|
|
15 |
display: flex;
|
16 |
align-items: center;
|
17 |
-
margin-bottom:
|
18 |
}
|
19 |
.header img {
|
20 |
-
height:
|
21 |
margin-right: 15px;
|
22 |
}
|
23 |
.header h1 {
|
24 |
margin: 0;
|
25 |
-
font-size:
|
26 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
/* Form styling */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
form {
|
31 |
margin: 20px 0;
|
32 |
}
|
|
|
33 |
input[type="text"] {
|
34 |
-
padding:
|
35 |
border: 1px solid #ddd;
|
36 |
-
border-radius:
|
37 |
margin-right: 10px;
|
38 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
|
|
40 |
button {
|
41 |
-
padding:
|
42 |
background-color: #3498db;
|
43 |
color: white;
|
44 |
border: none;
|
45 |
-
border-radius:
|
46 |
cursor: pointer;
|
|
|
|
|
|
|
47 |
}
|
|
|
48 |
button:hover {
|
49 |
background-color: #2980b9;
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
</style>
|
52 |
</head>
|
53 |
<body>
|
54 |
<!-- Header with logo and title -->
|
55 |
<div class="header">
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
</div>
|
63 |
|
64 |
<div class="container">
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
</div>
|
73 |
</body>
|
74 |
</html>
|
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>AI SBOM Generator</title>
|
7 |
<style>
|
8 |
+
body {
|
9 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
+
margin: 0;
|
11 |
+
padding: 0;
|
12 |
+
line-height: 1.6;
|
13 |
+
color: #333;
|
14 |
+
background-color: #f9f9f9;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
max-width: 1000px;
|
18 |
+
margin: 0 auto;
|
19 |
+
padding: 0 20px;
|
20 |
+
}
|
21 |
|
22 |
/* Header styling */
|
23 |
.header {
|
24 |
+
background-color: #ffffff;
|
25 |
padding: 15px 20px;
|
26 |
border-bottom: 1px solid #e9ecef;
|
27 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
28 |
display: flex;
|
29 |
align-items: center;
|
30 |
+
margin-bottom: 30px;
|
31 |
}
|
32 |
.header img {
|
33 |
+
height: 60px;
|
34 |
margin-right: 15px;
|
35 |
}
|
36 |
.header h1 {
|
37 |
margin: 0;
|
38 |
+
font-size: 28px;
|
39 |
+
color: #2c3e50;
|
40 |
+
font-weight: 600;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Content styling */
|
44 |
+
.content-section {
|
45 |
+
background-color: #ffffff;
|
46 |
+
border-radius: 8px;
|
47 |
+
padding: 25px;
|
48 |
+
margin-bottom: 30px;
|
49 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
50 |
+
}
|
51 |
+
|
52 |
+
.content-section h2 {
|
53 |
+
color: #2c3e50;
|
54 |
+
margin-top: 0;
|
55 |
+
margin-bottom: 20px;
|
56 |
+
font-size: 22px;
|
57 |
+
border-bottom: 2px solid #f0f0f0;
|
58 |
+
padding-bottom: 10px;
|
59 |
+
}
|
60 |
+
|
61 |
+
.content-section p {
|
62 |
+
margin-bottom: 20px;
|
63 |
+
font-size: 16px;
|
64 |
+
line-height: 1.7;
|
65 |
+
color: #555;
|
66 |
}
|
67 |
|
68 |
/* Form styling */
|
69 |
+
.form-section {
|
70 |
+
background-color: #ffffff;
|
71 |
+
border-radius: 8px;
|
72 |
+
padding: 25px;
|
73 |
+
margin-bottom: 30px;
|
74 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
75 |
+
}
|
76 |
+
|
77 |
+
.form-section p {
|
78 |
+
margin-bottom: 20px;
|
79 |
+
font-size: 16px;
|
80 |
+
color: #555;
|
81 |
+
}
|
82 |
+
|
83 |
form {
|
84 |
margin: 20px 0;
|
85 |
}
|
86 |
+
|
87 |
input[type="text"] {
|
88 |
+
padding: 12px;
|
89 |
border: 1px solid #ddd;
|
90 |
+
border-radius: 6px;
|
91 |
margin-right: 10px;
|
92 |
+
width: 350px;
|
93 |
+
font-size: 15px;
|
94 |
+
transition: border-color 0.3s;
|
95 |
+
}
|
96 |
+
|
97 |
+
input[type="text"]:focus {
|
98 |
+
border-color: #3498db;
|
99 |
+
outline: none;
|
100 |
+
box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
|
101 |
}
|
102 |
+
|
103 |
button {
|
104 |
+
padding: 12px 20px;
|
105 |
background-color: #3498db;
|
106 |
color: white;
|
107 |
border: none;
|
108 |
+
border-radius: 6px;
|
109 |
cursor: pointer;
|
110 |
+
font-size: 15px;
|
111 |
+
font-weight: 500;
|
112 |
+
transition: background-color 0.3s;
|
113 |
}
|
114 |
+
|
115 |
button:hover {
|
116 |
background-color: #2980b9;
|
117 |
}
|
118 |
+
|
119 |
+
code {
|
120 |
+
background-color: #f8f9fa;
|
121 |
+
padding: 2px 5px;
|
122 |
+
border-radius: 4px;
|
123 |
+
font-family: monospace;
|
124 |
+
font-size: 14px;
|
125 |
+
color: #e74c3c;
|
126 |
+
}
|
127 |
+
|
128 |
+
/* Footer styling */
|
129 |
+
.footer {
|
130 |
+
text-align: center;
|
131 |
+
padding: 20px;
|
132 |
+
color: #7f8c8d;
|
133 |
+
font-size: 14px;
|
134 |
+
margin-top: 30px;
|
135 |
+
}
|
136 |
</style>
|
137 |
</head>
|
138 |
<body>
|
139 |
<!-- Header with logo and title -->
|
140 |
<div class="header">
|
141 |
+
<div style="display: flex; align-items: center; gap: 10px;">
|
142 |
+
<a href="https://aetheris.ai/" target="_blank">
|
143 |
+
<img src="https://huggingface.co/spaces/aetheris-ai/aibom-generator/resolve/main/templates/images/AetherisAI-logo.png" alt="Aetheris AI Logo">
|
144 |
+
</a>
|
145 |
+
<h1>AI SBOM Generator</h1>
|
146 |
+
</div>
|
147 |
</div>
|
148 |
|
149 |
<div class="container">
|
150 |
+
<!-- Form Section (Moved to top) -->
|
151 |
+
<div class="form-section">
|
152 |
+
<h2>Generate Your AI SBOM</h2>
|
153 |
+
<p>
|
154 |
+
Enter a model on Hugging Face, in a format <code><organization-or-username>/<model-name></code> to generate AI SBOM in CycloneDX format. You can browse available models in the <a href="https://huggingface.co/models" target="_blank" rel="noopener noreferrer">Hugging Face models repository</a>.
|
155 |
+
</p>
|
156 |
+
<form action="/generate" method="post">
|
157 |
+
<input type="text" name="model_id" placeholder="e.g., openai/whisper-tiny" required>
|
158 |
+
<button type="submit">Generate AI SBOM</button>
|
159 |
+
</form>
|
160 |
+
</div>
|
161 |
+
|
162 |
+
<!-- Tool Description Section -->
|
163 |
+
<div class="content-section">
|
164 |
+
<h2>About This Tool</h2>
|
165 |
+
<p>This open-source tool helps you generate AI SBOMs for models hosted on Hugging Face. It automatically extracts and formats key information—such as model metadata, training datasets, dependencies, and configurations—into a standardized, machine-readable SBOM using the CycloneDX JSON format. While not all models have consistent metadata quality and much of the information is unstructured, this tool helps navigate those gaps by extracting available data and organizing it into a clear, standardized structure to support transparency, security, and compliance.</p>
|
166 |
+
</div>
|
167 |
+
|
168 |
+
<!-- Introduction Section -->
|
169 |
+
<div class="content-section">
|
170 |
+
<h2>Understanding AI SBOMs</h2>
|
171 |
+
<p>An AI SBOM (Artificial Intelligence Software Bill of Materials) is a detailed, structured inventory that lists the components and dependencies involved in building and operating an AI system—such as pre-trained models, datasets, libraries, and configuration parameters. Much like a traditional SBOM for software, an AI SBOM brings transparency to what goes into an AI system, enabling organizations to assess security, compliance, and ethical risks. It is essential for managing AI supply chain risks, supporting regulatory requirements, ensuring model provenance, and enabling incident response and audits. As AI systems grow more complex and widely adopted, AI SBOMs become critical for maintaining trust, accountability, and control over how AI technologies are developed, integrated, and deployed.</p>
|
172 |
+
</div>
|
173 |
+
|
174 |
+
<!-- Footer -->
|
175 |
+
<div class="footer">
|
176 |
+
<p>© 2025 AI SBOM Generator | Powered by Aetheris AI</p>
|
177 |
+
</div>
|
178 |
</div>
|
179 |
</body>
|
180 |
</html>
|