|
|
<!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: 900px;
|
|
|
margin: auto;
|
|
|
background-color: #04293A;
|
|
|
padding: 20px;
|
|
|
border-radius: 8px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
h1 {
|
|
|
color: #ECB365;
|
|
|
}
|
|
|
.result-box {
|
|
|
padding: 20px;
|
|
|
margin-top: 15px;
|
|
|
border: 2px solid #ECB365;
|
|
|
background-color: #064663;
|
|
|
font-size: 1em;
|
|
|
font-weight: normal;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.btn {
|
|
|
margin-top: 20px;
|
|
|
padding: 10px 15px;
|
|
|
background-color: #ECB365;
|
|
|
color: #041C32;
|
|
|
border: none;
|
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
|
font-weight: bold;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.table-wrapper {
|
|
|
overflow-x: auto;
|
|
|
margin: auto;
|
|
|
max-width: 100%;
|
|
|
padding: 10px;
|
|
|
background-color: #04293A;
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
table {
|
|
|
width: 100%;
|
|
|
border-collapse: collapse;
|
|
|
color: #ECB365;
|
|
|
}
|
|
|
th, td {
|
|
|
border: 1px solid #ECB365;
|
|
|
padding: 8px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
th {
|
|
|
background-color: #064663;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
<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>
|
|
|
|
|
|
<div class="container">
|
|
|
<h1>Analysis 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>
|
|
|
|