File size: 1,369 Bytes
7bc25d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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>