Spaces:
Running
Running
Create predict.html
Browse files- templates/predict.html +20 -0
templates/predict.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
{% block title %}Predict House Price{% endblock %}
|
| 3 |
+
{% block content %}
|
| 4 |
+
<h2>Predict House Price</h2>
|
| 5 |
+
<form method="POST" class="form-box">
|
| 6 |
+
<input type="text" name="longitude" placeholder="Longitude" required><br>
|
| 7 |
+
<input type="text" name="latitude" placeholder="Latitude" required><br>
|
| 8 |
+
<input type="text" name="housing_median_age" placeholder="Housing Median Age" required><br>
|
| 9 |
+
<input type="text" name="total_rooms" placeholder="Total Rooms" required><br>
|
| 10 |
+
<input type="text" name="total_bedrooms" placeholder="Total Bedrooms" required><br>
|
| 11 |
+
<input type="text" name="population" placeholder="Population" required><br>
|
| 12 |
+
<input type="text" name="households" placeholder="Households" required><br>
|
| 13 |
+
<input type="text" name="median_income" placeholder="Median Income" required><br>
|
| 14 |
+
<input type="text" name="rooms_per_household" placeholder="Rooms per Household" required><br>
|
| 15 |
+
<button type="submit">Predict</button>
|
| 16 |
+
</form>
|
| 17 |
+
{% if prediction %}
|
| 18 |
+
<h3 class="result">Predicted Price: {{ prediction }}</h3>
|
| 19 |
+
{% endif %}
|
| 20 |
+
{% endblock %}
|