File size: 2,469 Bytes
2336542
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14f07bd
2336542
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Prediction Result</title>
  <style>
    body {
      background-color: #041C32;
      color: #ECB365;
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 20px;
    }
    
    .container {
      max-width: auto;
      margin: 30px auto;
      background-color: #04293A;
      padding: 25px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0px 0px 15px rgba(236, 179, 101, 0.3);
    }

    h1 {
      color: #ECB365;
      margin-bottom: 15px;
    }

    .result-box {
      padding: 20px;
      margin-top: 20px;
      border: 2px solid #ECB365;
      background-color: #064663;
      font-size: 1.1em;
      font-weight: normal;
      border-radius: 8px;
      box-shadow: 0px 0px 10px rgba(236, 179, 101, 0.2);
    }

    .btn {
      margin-top: 20px;
      padding: 12px 18px;
      background-color: #ECB365;
      color: #041C32;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
      text-decoration: none;
      display: inline-block;
      transition: 0.3s;
    }

    .btn:hover {
      background-color: #d69f50;
    }

    .table-wrapper {
      overflow-x: auto;
      margin: auto;
      max-width: 100%;
      padding: 15px;
      background-color: #04293A;
      border-radius: 6px;
      box-shadow: 0px 0px 10px rgba(236, 179, 101, 0.15);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      color: #ECB365;
    }

    th, td {
      border: 1px solid #ECB365;
      padding: 10px;
      text-align: center;
    }

    th {
      background-color: #064663;
      font-weight: bold;
    }
  </style>
</head>
<body>

  <!--Prediction Report-->
  <div class="container">
    <h1>Predicted Diamond Price</h1>
    <div class="result-box">
      <p>The Prediction on diamond:</p>
      <div class="table-wrapper">
        {{ df|safe }}
      </div>
    </div>
    <a href="{{ url_for('download_pred') }}" class="btn">Download CSV</a>
    <a href="/" class="btn">Go Back</a>
  </div>

  <!--Analysis Report-->
  <div class="container">
    <h1>Analysis of Diamond Parameter Changes</h1>
    <div class="result-box">
      <p>The analysis on diamond:</p>
      <div class="table-wrapper">
        {{ dx|safe }}
      </div>
    </div>
    <a href="{{ url_for('download_class') }}" class="btn">Download CSV</a>
    <a href="/" class="btn">Go Back</a>
  </div>

</body>
</html>