| <!doctype html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8" /> |
| <meta name="viewport" content="width=device-width,initial-scale=1" /> |
| <title>Error - LuminaCXR</title> |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> |
| </head> |
| <body class="bg-light"> |
| <nav class="navbar navbar-expand-lg navbar-dark bg-danger mb-4"> |
| <div class="container"> |
| <a class="navbar-brand" href="/">LuminaCXR</a> |
| </div> |
| </nav> |
|
|
| <div class="container"> |
| <div class="row justify-content-center"> |
| <div class="col-md-8"> |
| <div class="card border-danger shadow-sm"> |
| <div class="card-body"> |
| <h5 class="card-title text-danger">Application Error</h5> |
| <p class="card-text">An error occurred while processing your request.</p> |
| <pre class="bg-light p-2" style="white-space:pre-wrap;">{{ error_message }}</pre> |
| <a class="btn btn-primary mt-3" href="/">Go back</a> |
| </div> |
| </div> |
|
|
| <div class="mt-3 text-muted small"> |
| Common fixes: |
| <ul> |
| <li>Upload a valid <code>model.pth</code> to the root of the Space and restart.</li> |
| <li>Check logs for `_pickle.UnpicklingError` — the file may be HTML/corrupt.</li> |
| </ul> |
| </div> |
| </div> |
| </div> |
| </div> |
| </body> |
| </html> |
|
|