DiamRapo / templates /home.html
WebashalarForML's picture
Upload 13 files
43c7e13 verified
<!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;
}
label {
display: block;
margin-top: 10px;
color: #ECB365;
}
input[type="text"],
input[type="number"],
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;
}
.flash {
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ECB365;
background-color: #064663;
}
</style>
</head>
<body>
<div class="container">
<h1>Diamond Price Prediction</h1>
<p><strong>Note:</strong>there may be values missing in option due to less data.</p>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<form action="{{ url_for('predict') }}" method="post">
<!-- Fixed dropdown fields -->
<label for="Tag">Tag (Category)</label>
<select id="Tag" name="Tag">
<option value="">Select Tag</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="G">G</option>
<option value="H">H</option>
<option value="I">I</option>
</select>
<label for="EngShp">EngShp</label>
<select id="EngShp" name="EngShp">
<option value="">Select EngShp</option>
<option value="OV">OV</option>
<option value="MQ">MQ</option>
<option value="PE">PE</option>
<option value="R">R</option>
<option value="EM">EM</option>
<option value="HR">HR</option>
<option value="RD">RD</option>
<option value="PR">PR</option>
</select>
<label for="EngQua">EngQua</label>
<select id="EngQua" name="EngQua">
<option value="">Select EngQua</option>
<option value="SI2">SI2</option>
<option value="SI1">SI1</option>
<option value="VS2">VS2</option>
<option value="VVS2">VVS2</option>
<option value="VS1">VS1</option>
<option value="I2">I2</option>
<option value="I1">I1</option>
<option value="I2-">I2-</option>
<option value="I3">I3</option>
<option value="SI3">SI3</option>
<option value="I1-">I1-</option>
<option value="I4">I4</option>
<option value="I5">I5</option>
<option value="VVS1">VVS1</option>
</select>
<label for="EngCol">EngCol</label>
<select id="EngCol" name="EngCol">
<option value="">Select EngCol</option>
<option value="G">G</option>
<option value="F">F</option>
<option value="H">H</option>
<option value="E">E</option>
<option value="I">I</option>
<option value="J">J</option>
<option value="D">D</option>
<option value="L">L</option>
<option value="K">K</option>
<option value="M">M</option>
</select>
<label for="EngCut">EngCut</label>
<select id="EngCut" name="EngCut">
<option value="">Select EngCut</option>
<option value="EX3">EX3</option>
<option value="VG1">VG1</option>
<option value="EX1">EX1</option>
<option value="EX4">EX4</option>
<option value="EX2">EX2</option>
<option value="GD1">GD1</option>
</select>
<label for="EngPol">EngPol</label>
<select id="EngPol" name="EngPol">
<option value="">Select EngPol</option>
<option value="EX">EX</option>
<option value="VG">VG</option>
</select>
<label for="EngSym">EngSym</label>
<select id="EngSym" name="EngSym">
<option value="">Select EngSym</option>
<option value="EX">EX</option>
<option value="VG">VG</option>
</select>
<label for="EngFlo">EngFlo</label>
<select id="EngFlo" name="EngFlo">
<option value="">Select EngFlo</option>
<option value="Non">Non</option>
<option value="Fnt">Fnt</option>
<option value="Med">Med</option>
<option value="Str">Str</option>
<option value="VStr">VStr</option>
</select>
<label for="EngNts">EngNts</label>
<select id="EngNts" name="EngNts">
<option value="">Select EngNts</option>
<option value="N">N</option>
<option value="NTS2">NTS2</option>
<option value="NTS1">NTS1</option>
<option value="RSP-1">RSP-1</option>
</select>
<label for="EngMikly">EngMikly</label>
<select id="EngMikly" name="EngMikly">
<option value="">Select EngMikly</option>
<option value="N">N</option>
<option value="ML1">ML1</option>
<option value="Nv">Nv</option>
</select>
<label for="EngLab">EngLab</label>
<select id="EngLab" name="EngLab">
<option value="">Select EngLab</option>
<option value="nan">None</option>
<option value="IGI">IGI</option>
</select>
<!-- Other input fields remain for user to fill manually -->
<!-- <label for="ICarat">ICarat</label>
<input type="number" step="any" id="ICarat" name="ICarat" placeholder="Enter ICarat">
<label for="MkblCarat">MkblCarat</label>
<input type="number" step="any" id="MkblCarat" name="MkblCarat" placeholder="Enter MkblCarat">
<label for="SawLossCarat">SawLossCarat</label>
<input type="number" step="any" id="SawLossCarat" name="SawLossCarat" placeholder="Enter SawLossCarat">
<label for="CrapsCarat">CrapsCarat</label>
<input type="number" step="any" id="CrapsCarat" name="CrapsCarat" placeholder="Enter CrapsCarat">
<label for="EngGraphCts">EngGraphCts</label>
<input type="number" step="any" id="EngGraphCts" name="EngGraphCts" placeholder="Enter EngGraphCts"> -->
<label for="EngCts">EngCts</label>
<input type="number" step="any" id="EngCts" name="EngCts" placeholder="Enter EngCts">
<label for="EngAmt">EngAmt</label>
<input type="number" step="any" id="EngAmt" name="EngAmt" placeholder="Enter EngAmt">
<button type="submit" class="btn">Predict Price</button>
</form>
</div>
</body>
</html>