Spaces:
Sleeping
Sleeping
File size: 4,142 Bytes
0b4e633 |
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Diamond Price Prediction</title>
<style>
body {
background-color: #041C32;
color: #ECB365;
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
.container {
max-width: 800px;
margin: auto;
background-color: #04293A;
padding: 20px;
border-radius: 8px;
}
h1 {
color: #ECB365;
text-align: center;
}
label {
display: block;
margin-top: 10px;
color: #ECB365;
}
input, select {
width: 100%;
padding: 8px;
margin-top: 5px;
border: 1px solid #064663;
border-radius: 4px;
background-color: #064663;
color: #ECB365;
box-sizing: border-box;
}
.btn {
margin-top: 20px;
padding: 10px 15px;
background-color: #ECB365;
color: #041C32;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.upload-section {
margin-top: 20px;
padding: 15px;
border: 2px dashed #ECB365;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<h1>Diamond Price Prediction</h1>
<div class="upload-section">
<h3>Upload CSV or Excel for Bulk Prediction</h3>
<form action="{{ url_for('predict') }}" method="post" enctype="multipart/form-data">
<input type="file" name="file" accept=".csv, .xlsx" required>
<button type="submit" class="btn">Upload & Predict</button>
</form>
</div>
</div>
</body>
</html>
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Diamond Price Prediction</title>
<style>
body {
background-color: #041C32;
color: #ECB365;
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
.container {
max-width: 800px;
margin: auto;
background-color: #04293A;
padding: 20px;
border-radius: 8px;
}
h1 {
color: #ECB365;
text-align: center;
}
label {
display: block;
margin-top: 10px;
color: #ECB365;
}
input, select {
width: 100%;
padding: 8px;
margin-top: 5px;
border: 1px solid #064663;
border-radius: 4px;
background-color: #064663;
color: #ECB365;
box-sizing: border-box;
}
.btn {
margin-top: 20px;
padding: 10px 15px;
background-color: #ECB365;
color: #041C32;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.upload-section {
margin-top: 20px;
padding: 15px;
border: 2px dashed #ECB365;
text-align: center;
}
/* Loader styles */
.loader-overlay {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.6);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
}
.loader {
border: 8px solid #f3f3f3;
border-top: 8px solid #ECB365;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="loader-overlay" id="loader">
<div class="loader"></div>
</div>
<div class="container">
<h1>Diamond Price Prediction</h1>
<div class="upload-section">
<h3>Upload CSV or Excel for Bulk Prediction</h3>
<form id="uploadForm" action="{{ url_for('predict') }}" method="post" enctype="multipart/form-data">
<input type="file" name="file" accept=".csv, .xlsx" required>
<button type="submit" class="btn">Upload & Predict</button>
</form>
</div>
</div>
<script>
const form = document.getElementById('uploadForm');
const loader = document.getElementById('loader');
form.addEventListener('submit', function () {
loader.style.display = 'flex';
});
</script>
</body>
</html>
|