Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +17 -28
templates/index.html
CHANGED
|
@@ -4,17 +4,17 @@
|
|
| 4 |
<title>Crop Recommendation System</title>
|
| 5 |
<style>
|
| 6 |
body {
|
|
|
|
| 7 |
font-family: Arial;
|
| 8 |
-
background: #eef2f3;
|
| 9 |
padding: 30px;
|
| 10 |
}
|
| 11 |
.container {
|
| 12 |
background: white;
|
| 13 |
padding: 25px;
|
| 14 |
-
width:
|
| 15 |
margin: auto;
|
| 16 |
-
border-radius:
|
| 17 |
-
box-shadow:
|
| 18 |
}
|
| 19 |
input {
|
| 20 |
width: 100%;
|
|
@@ -22,13 +22,14 @@
|
|
| 22 |
margin: 8px 0;
|
| 23 |
}
|
| 24 |
button {
|
| 25 |
-
width: 100%;
|
| 26 |
padding: 12px;
|
| 27 |
background: green;
|
| 28 |
color: white;
|
| 29 |
border: none;
|
|
|
|
|
|
|
| 30 |
cursor: pointer;
|
| 31 |
-
|
| 32 |
}
|
| 33 |
button:hover {
|
| 34 |
background: darkgreen;
|
|
@@ -38,31 +39,19 @@
|
|
| 38 |
<body>
|
| 39 |
|
| 40 |
<div class="container">
|
| 41 |
-
<h2
|
| 42 |
-
<form action="/predict" method="
|
| 43 |
-
|
| 44 |
-
<label>N (Nitrogen)</label>
|
| 45 |
-
<input type="text" name="N" required>
|
| 46 |
-
|
| 47 |
-
<label>P (Phosphorus)</label>
|
| 48 |
-
<input type="text" name="P" required>
|
| 49 |
-
|
| 50 |
-
<label>K (Potassium)</label>
|
| 51 |
-
<input type="text" name="K" required>
|
| 52 |
|
| 53 |
-
<
|
| 54 |
-
<input type="
|
| 55 |
-
|
| 56 |
-
<
|
| 57 |
-
<input type="
|
| 58 |
-
|
| 59 |
-
<
|
| 60 |
-
<input type="text" name="ph" required>
|
| 61 |
-
|
| 62 |
-
<label>Rainfall</label>
|
| 63 |
-
<input type="text" name="rainfall" required>
|
| 64 |
|
| 65 |
<button type="submit">Predict Crop</button>
|
|
|
|
| 66 |
</form>
|
| 67 |
</div>
|
| 68 |
|
|
|
|
| 4 |
<title>Crop Recommendation System</title>
|
| 5 |
<style>
|
| 6 |
body {
|
| 7 |
+
background: #f0f7ff;
|
| 8 |
font-family: Arial;
|
|
|
|
| 9 |
padding: 30px;
|
| 10 |
}
|
| 11 |
.container {
|
| 12 |
background: white;
|
| 13 |
padding: 25px;
|
| 14 |
+
max-width: 500px;
|
| 15 |
margin: auto;
|
| 16 |
+
border-radius: 10px;
|
| 17 |
+
box-shadow: 0 0 10px #ccc;
|
| 18 |
}
|
| 19 |
input {
|
| 20 |
width: 100%;
|
|
|
|
| 22 |
margin: 8px 0;
|
| 23 |
}
|
| 24 |
button {
|
|
|
|
| 25 |
padding: 12px;
|
| 26 |
background: green;
|
| 27 |
color: white;
|
| 28 |
border: none;
|
| 29 |
+
width: 100%;
|
| 30 |
+
margin-top: 15px;
|
| 31 |
cursor: pointer;
|
| 32 |
+
font-size: 16px;
|
| 33 |
}
|
| 34 |
button:hover {
|
| 35 |
background: darkgreen;
|
|
|
|
| 39 |
<body>
|
| 40 |
|
| 41 |
<div class="container">
|
| 42 |
+
<h2>Crop Recommendation System 🌾</h2>
|
| 43 |
+
<form action="/predict" method="post">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
<input type="number" step="0.1" name="N" placeholder="Nitrogen (N)" required>
|
| 46 |
+
<input type="number" step="0.1" name="P" placeholder="Phosphorus (P)" required>
|
| 47 |
+
<input type="number" step="0.1" name="K" placeholder="Potassium (K)" required>
|
| 48 |
+
<input type="number" step="0.1" name="temperature" placeholder="Temperature" required>
|
| 49 |
+
<input type="number" step="0.1" name="humidity" placeholder="Humidity" required>
|
| 50 |
+
<input type="number" step="0.1" name="ph" placeholder="Soil pH" required>
|
| 51 |
+
<input type="number" step="0.1" name="rainfall" placeholder="Rainfall" required>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
<button type="submit">Predict Crop</button>
|
| 54 |
+
|
| 55 |
</form>
|
| 56 |
</div>
|
| 57 |
|