sid22669's picture
Update templates/index.html
8eaf5f8 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fetal Health Prediction Input</title>
<style>
/* General body styling */
body {
font-family: 'Arial', sans-serif;
background-color: #f4f7fc;
color: #333;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
}
h1 {
color: #4e73df;
text-align: center;
margin-bottom: 40px;
font-size: 2rem;
}
/* Form container styling */
form {
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 450px;
}
label {
display: block;
margin-bottom: 8px;
font-size: 1.1rem;
font-weight: bold;
color: #333;
}
input[type="number"] {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
}
input[type="submit"] {
background-color: #4e73df;
color: white;
padding: 15px;
border: none;
border-radius: 6px;
font-size: 1.1rem;
cursor: pointer;
transition: background-color 0.3s;
width: 100%;
}
input[type="submit"]:hover {
background-color: #2e59d9;
}
/* Title styling */
.form-title {
color: #333;
font-size: 1.25rem;
margin-bottom: 30px;
font-weight: bold;
}
/* Responsive Design */
@media (max-width: 600px) {
h1 {
font-size: 1.5rem;
}
form {
padding: 20px;
width: 90%;
}
input[type="number"] {
padding: 10px;
}
input[type="submit"] {
padding: 12px;
}
}
</style>
</head>
<body>
<h1>Fetal Health Prediction Input</h1>
<form action="/predict" method="POST">
<p class="form-title">Enter the following values for the prediction:</p>
<label for="input1">Baseline Value (baseline_value):</label>
<input type="number" id="input1" name="input1" step="any" required>
<label for="input2">Accelerations (accelerations):</label>
<input type="number" id="input2" name="input2" step="any" required>
<label for="input3">Fetal Movement (fetal_movement):</label>
<input type="number" id="input3" name="input3" step="any" required>
<label for="input4">Uterine Contractions (uterine_contractions):</label>
<input type="number" id="input4" name="input4" step="any" required>
<label for="input5">Light Decelerations (light_decelerations):</label>
<input type="number" id="input5" name="input5" step="any" required>
<label for="input6">Severe Decelerations (severe_decelerations):</label>
<input type="number" id="input6" name="input6" step="any" required>
<label for="input7">Prolonged Decelerations (prolongued_decelerations):</label>
<input type="number" id="input7" name="input7" step="any" required>
<input type="submit" value="Get Prediction">
</form>
</body>
</html>