File size: 8,407 Bytes
80e0598
 
 
 
 
8f7223e
 
 
80e0598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32c65b5
80e0598
 
32c65b5
 
 
 
80e0598
 
 
 
32c65b5
80e0598
32c65b5
80e0598
 
 
 
 
8f7223e
32c65b5
80e0598
32c65b5
 
 
 
 
 
8f7223e
32c65b5
 
 
 
 
 
 
 
8f7223e
32c65b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80e0598
 
 
8f7223e
80e0598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8f7223e
80e0598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32c65b5
80e0598
 
 
 
 
 
 
 
 
8f7223e
80e0598
 
 
8f7223e
80e0598
 
 
 
 
 
 
 
 
 
 
 
8f7223e
80e0598
32c65b5
 
 
8f7223e
32c65b5
 
 
 
 
80e0598
32c65b5
8f7223e
80e0598
8f7223e
80e0598
 
 
 
 
 
 
32c65b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80e0598
 
8f7223e
80e0598
 
8f7223e
 
32c65b5
 
8f7223e
527f0d5
32c65b5
 
8f7223e
32c65b5
 
 
8f7223e
32c65b5
 
 
8f7223e
32c65b5
8f7223e
32c65b5
 
 
 
 
 
 
8f7223e
80e0598
32c65b5
 
80e0598
 
 
8f7223e
 
 
 
 
 
 
 
 
80e0598
32c65b5
 
8f7223e
 
32c65b5
 
 
8f7223e
32c65b5
 
 
8f7223e
32c65b5
8f7223e
80e0598
32c65b5
80e0598
 
8f7223e
80e0598
8f7223e
80e0598
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Error Generating AIBOM</title>

    <style>
        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            margin: 0; 
            padding: 0; 
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }
        .container { 
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header styling */
        .header {
            background-color: #ffffff;
            padding: 15px 20px;
            border-bottom: 1px solid #e9ecef;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
        }
        .header-left {
            display: flex;
            align-items: center;
        }
        .header img {
            height: 60px;
            margin-right: 15px;
        }
        .header-content {
            display: flex;
            flex-direction: column;
        }
        .header h1 {
            margin: 0;
            font-size: 28px;
            color: #2c3e50;
            font-weight: 650;
            margin-bottom: 5px;
        }
        .header-right {
            display: flex;
            gap: 10px;
        }
        .generate-another-btn {
            padding: 12px 20px;
            background-color: #005ba1; /* OWASP blue */
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            font-size: 15px;
            transition: background-color 0.3s;
        }
        .generate-another-btn:hover {
            background-color: #004478;
            text-decoration: none;
            color: white;
        }
        
        /* Error message styling */
        .error-message {
            text-align: left;
            padding: 15px;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .error-message h2 {
            margin: 0;
            font-size: 18px;
            color: #721c24;
            font-weight: 500;
        }
        
        /* Content sections */
        .content-section {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .content-section h2 {
            color: #2c3e50;
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 22px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 10px;
        }
        
        .content-section p {
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.7;
            color: #555;
        }
        /* Error details block */
        .error-section {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .error-section h2 {
            color: #e74c3c;
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 22px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 10px;
        }
        
        .error-details {
            background-color: #ffebee;
            border-left: 4px solid #e74c3c;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            font-size: 16px;
            line-height: 1.7;
            color: #555;
        }
        /* Buttons */
        .button {
            display: inline-block;
            padding: 12px 20px;
            background-color: #005ba1;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            text-decoration: none;
            transition: background-color 0.3s;
            margin-bottom: 20px;
        }
        
        .button:hover {
            background-color: #004478;
        }
        .github-button {
            display: inline-block;
            padding: 12px 20px;
            background-color: #005ba1;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            transition: background-color 0.3s;
        }
        .github-button:hover {
            background-color: #004478;
        }
        /* Footer */
        .footer {
            text-align: center;
            padding: 20px;
            color: #7f8c8d;
            font-size: 14px;
            margin-top: 30px;
        }
        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .container {
                padding: 0 15px;
            }
            .header {
                flex-direction: column;
                text-align: center;
                padding: 15px;
            }
            .header-left {
                margin-bottom: 15px;
            }
            .header img {
                margin-bottom: 10px;
                margin-right: 0;
            }
            .button, .generate-another-btn {
                width: 100%;
                text-align: center;
                margin-bottom: 10px;
            }
        }
    </style>
</head>

<body>
    <div class="container">

        <!-- Header -->
        <div class="header">
            <div class="header-left">
                <a href="https://genai.owasp.org" target="_blank">
                    <img src="https://huggingface.co/spaces/e2hln/OWASP-AIBOM-Generator/resolve/main/templates/images/OWASP_GenAI_Security_Project-logo.png" alt="OWASP GenAI Security Project logo">
                </a>
                <div class="header-content">
                    <h1>OWASP AIBOM Generator</h1>
                </div>
            </div>
            <div class="header-right">
                <a href="/" class="generate-another-btn">πŸš€ Generate Another AIBOM</a>
            </div>
        </div>

        <!-- Error message -->
        <div class="error-message">
            <h2>❌ Error Generating AIBOM</h2>
        </div>

        <!-- Try Again Button -->
        <div style="text-align: left; margin-bottom: 20px;">
            <a href="/" class="button">πŸ”„ Try Again</a>
        </div>
        
        <!-- Error Details -->
        <div class="error-section">
            <h2>What Happened?</h2>
            <div class="error-details">
                <p>{{ error }}</p>
            </div>
        </div>

        <!-- Common Solutions -->
        <div class="content-section">
            <h2>πŸ’‘ Common Solutions</h2>
            <p><strong>Model not found:</strong> Check that the model ID follows <code>owner/model-name</code> format and exists on Hugging Face.</p>
            <p><strong>Access issues:</strong> Some models require an access token or may be private.</p>
            <p><strong>Temporary issues:</strong> Try again if there were connectivity or Hugging Face API hiccups.</p>
        </div>
      
        <!-- Support Section -->
        <div class="content-section">
            <h2>πŸ› οΈ Need Help?</h2>
            <p>If this error persists or you believe it's a bug, please let us know:</p>
            <a href="https://github.com/aetheris-ai/aibom-generator/issues" target="_blank" class="github-button">
                πŸ“‹ Report Issue on GitHub
            </a>
            <p style="margin-top: 15px; font-size: 14px; color: #666;">
                <strong>Tip:</strong> Please include the error message above and the model ID you were trying to process.
            </p>
        </div>

        <!-- SBOM Count -->
        <div class="content-section" style="text-align: center;">
            <div class="sbom-count">πŸš€ Generated AIBOMs with this tool: <strong>{{ sbom_count if sbom_count else 'N/A' }}</strong></div>        
        </div>

        <!-- Footer -->
        <div class="footer">
            <p>Β© 2025 OWASP GenAI Security Project | OWASP AIBOM Generator</p>
        </div>

    </div>
</body>
</html>