Create error.html
Browse files- templates/error.html +39 -0
templates/error.html
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
| 6 |
+
<title>Error - LuminaCXR</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
+
</head>
|
| 9 |
+
<body class="bg-light">
|
| 10 |
+
<nav class="navbar navbar-expand-lg navbar-dark bg-danger mb-4">
|
| 11 |
+
<div class="container">
|
| 12 |
+
<a class="navbar-brand" href="/">LuminaCXR</a>
|
| 13 |
+
</div>
|
| 14 |
+
</nav>
|
| 15 |
+
|
| 16 |
+
<div class="container">
|
| 17 |
+
<div class="row justify-content-center">
|
| 18 |
+
<div class="col-md-8">
|
| 19 |
+
<div class="card border-danger shadow-sm">
|
| 20 |
+
<div class="card-body">
|
| 21 |
+
<h5 class="card-title text-danger">Application Error</h5>
|
| 22 |
+
<p class="card-text">An error occurred while processing your request.</p>
|
| 23 |
+
<pre class="bg-light p-2" style="white-space:pre-wrap;">{{ error_message }}</pre>
|
| 24 |
+
<a class="btn btn-primary mt-3" href="/">Go back</a>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div class="mt-3 text-muted small">
|
| 29 |
+
Common fixes:
|
| 30 |
+
<ul>
|
| 31 |
+
<li>Upload a valid <code>model.pth</code> to the root of the Space and restart.</li>
|
| 32 |
+
<li>Check logs for `_pickle.UnpicklingError` — the file may be HTML/corrupt.</li>
|
| 33 |
+
</ul>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
</body>
|
| 39 |
+
</html>
|