dilpreet77's picture
Create templates/index.html
820300b verified
Raw History Blame
1.65 kB
<!DOCTYPE html>
<html>
<head>
<title>Crop Recommendation System</title>
<style>
body {
font-family: Arial;
background: #eef2f3;
padding: 30px;
}
.container {
background: white;
padding: 25px;
width: 400px;
margin: auto;
border-radius: 12px;
box-shadow: 0px 0px 10px gray;
}
input {
width: 100%;
padding: 10px;
margin: 8px 0;
}
button {
width: 100%;
padding: 12px;
background: green;
color: white;
border: none;
cursor: pointer;
border-radius: 6px;
}
button:hover {
background: darkgreen;
}
</style>
</head>
<body>
<div class="container">
<h2 align="center">Crop Recommendation System</h2>
<form action="/predict" method="POST">
<label>N (Nitrogen)</label>
<input type="text" name="N" required>
<label>P (Phosphorus)</label>
<input type="text" name="P" required>
<label>K (Potassium)</label>
<input type="text" name="K" required>
<label>Temperature</label>
<input type="text" name="temperature" required>
<label>Humidity</label>
<input type="text" name="humidity" required>
<label>pH Value</label>
<input type="text" name="ph" required>
<label>Rainfall</label>
<input type="text" name="rainfall" required>
<button type="submit">Predict Crop</button>
</form>
</div>
</body>
</html>