Update templates/output.html
Browse files- templates/output.html +116 -97
templates/output.html
CHANGED
|
@@ -1,97 +1,116 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<title>Prediction Result</title>
|
| 6 |
-
<style>
|
| 7 |
-
body {
|
| 8 |
-
background-color: #041C32;
|
| 9 |
-
color: #ECB365;
|
| 10 |
-
font-family: Arial, sans-serif;
|
| 11 |
-
margin: 0;
|
| 12 |
-
padding: 20px;
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
margin-
|
| 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 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Prediction Result</title>
|
| 6 |
+
<style>
|
| 7 |
+
body {
|
| 8 |
+
background-color: #041C32;
|
| 9 |
+
color: #ECB365;
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 20px;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.container {
|
| 16 |
+
max-width: 1000px;
|
| 17 |
+
margin: 30px auto;
|
| 18 |
+
background-color: #04293A;
|
| 19 |
+
padding: 25px;
|
| 20 |
+
border-radius: 10px;
|
| 21 |
+
text-align: center;
|
| 22 |
+
box-shadow: 0px 0px 15px rgba(236, 179, 101, 0.3);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
h1 {
|
| 26 |
+
color: #ECB365;
|
| 27 |
+
margin-bottom: 15px;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.result-box {
|
| 31 |
+
padding: 20px;
|
| 32 |
+
margin-top: 20px;
|
| 33 |
+
border: 2px solid #ECB365;
|
| 34 |
+
background-color: #064663;
|
| 35 |
+
font-size: 1.1em;
|
| 36 |
+
font-weight: normal;
|
| 37 |
+
border-radius: 8px;
|
| 38 |
+
box-shadow: 0px 0px 10px rgba(236, 179, 101, 0.2);
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.btn {
|
| 42 |
+
margin-top: 20px;
|
| 43 |
+
padding: 12px 18px;
|
| 44 |
+
background-color: #ECB365;
|
| 45 |
+
color: #041C32;
|
| 46 |
+
border: none;
|
| 47 |
+
border-radius: 6px;
|
| 48 |
+
cursor: pointer;
|
| 49 |
+
font-weight: bold;
|
| 50 |
+
text-decoration: none;
|
| 51 |
+
display: inline-block;
|
| 52 |
+
transition: 0.3s;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.btn:hover {
|
| 56 |
+
background-color: #d69f50;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.table-wrapper {
|
| 60 |
+
overflow-x: auto;
|
| 61 |
+
margin: auto;
|
| 62 |
+
max-width: 100%;
|
| 63 |
+
padding: 15px;
|
| 64 |
+
background-color: #04293A;
|
| 65 |
+
border-radius: 6px;
|
| 66 |
+
box-shadow: 0px 0px 10px rgba(236, 179, 101, 0.15);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
table {
|
| 70 |
+
width: 100%;
|
| 71 |
+
border-collapse: collapse;
|
| 72 |
+
color: #ECB365;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
th, td {
|
| 76 |
+
border: 1px solid #ECB365;
|
| 77 |
+
padding: 10px;
|
| 78 |
+
text-align: center;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
th {
|
| 82 |
+
background-color: #064663;
|
| 83 |
+
font-weight: bold;
|
| 84 |
+
}
|
| 85 |
+
</style>
|
| 86 |
+
</head>
|
| 87 |
+
<body>
|
| 88 |
+
|
| 89 |
+
<!--Prediction Report-->
|
| 90 |
+
<div class="container">
|
| 91 |
+
<h1>Predicted Diamond Price</h1>
|
| 92 |
+
<div class="result-box">
|
| 93 |
+
<p>The Prediction on diamond:</p>
|
| 94 |
+
<div class="table-wrapper">
|
| 95 |
+
{{ df|safe }}
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
<a href="{{ url_for('download_pred') }}" class="btn">Download CSV</a>
|
| 99 |
+
<a href="/" class="btn">Go Back</a>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<!--Analysis Report-->
|
| 103 |
+
<div class="container">
|
| 104 |
+
<h1>Analysis of Diamond Parameter Changes</h1>
|
| 105 |
+
<div class="result-box">
|
| 106 |
+
<p>The analysis on diamond:</p>
|
| 107 |
+
<div class="table-wrapper">
|
| 108 |
+
{{ dx|safe }}
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
<a href="{{ url_for('download_class') }}" class="btn">Download CSV</a>
|
| 112 |
+
<a href="/" class="btn">Go Back</a>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
</body>
|
| 116 |
+
</html>
|