Spaces:
Build error
Build error
File size: 3,247 Bytes
05355ae |
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 |
{% extends 'layout.html' %} {% block body %}
<style>
html body {
background-color: rgb(206, 206, 228);
}
</style>
<!--Form Section-->
<br /><br />
<h2 style="text-align: center; margin: 0px; color: black">
<b>Find out the most suitable crop to grow in your farm</b>
</h2>
<br />
<div
style="
width: 350px;
height: 50rem;
margin: 0px auto;
color: black;
border-radius: 25px;
padding: 10px 10px;
"
>
<form method="POST" action="{{ url_for('crop_prediction') }}">
<div class="form-group">
<label for="Nitrogen" style="font-size: 17px"><b>Nitrogen</b></label>
<input
type="number"
class="form-control"
id="Nitrogen"
name="nitrogen"
placeholder="Enter the value (example:50)"
style="font-weight: bold"
required
/>
</div>
<div class="form-group">
<label for="Phosphorous" style="font-size: 17px"
><b>Phosphorous</b></label
>
<input
type="number"
class="form-control"
id="Phosphorous"
name="phosphorous"
placeholder="Enter the value (example:50)"
style="font-weight: bold"
required
/>
</div>
<div class="form-group">
<label for="Pottasium" style="font-size: 17px"><b>Pottasium</b></label>
<input
type="number"
class="form-control"
id="Pottasium"
name="pottasium"
placeholder="Enter the value (example:50)"
style="font-weight: bold"
required
/>
</div>
<div class="form-group">
<label for="ph" style="font-size: 17px"><b>ph level</b></label>
<input
type="number"
step="0.01"
class="form-control"
id="ph"
name="ph"
placeholder="Enter the value"
style="font-weight: bold"
required
/>
</div>
<div class="form-group">
<label for="Rainfall" style="font-size: 17px"><b>Rainfall (in mm)</b></label>
<input
type="number"
step="0.01"
class="form-control"
id="Rainfall"
name="rainfall"
placeholder="Enter the value"
style="font-weight: bold"
required
/>
</div>
<div class="form-group">
<label for="State" style="font-size: 17px "><b>State</b></label>
<select
onchange="print_city('state', this.selectedIndex);"
id="sts"
name="stt"
class="form-control"
style="font-weight: bold; color: black;"
required
></select>
<br />
<label for="City" style="font-size: 17px"><b>City</b></label>
<select
id="state"
class="form-control"
name="city"
style="font-weight: bold; color: black;"
required
></select>
<script language="javascript">
print_state("sts");
</script>
</div>
<div class="d-flex justify-content-center">
<button
type="submit"
class="btn btn-info"
style="color: black; font-weight: bold; width: 130px; height:50px; border-radius:12px; font-size: 21px;"
>
Predict
</button>
</div>
</form>
</div>
<!-- Form section -->
{% endblock %}
|