-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.html
40 lines (31 loc) · 1.25 KB
/
result.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Purchase Prediction Model</title>
</head>
<body>
<h1> Purchase Prediction Model </h1>
<h4> Enter customer information and submit for likelihood to purchase </h4>
</body>
<!–– Forms ––>
<form action="{{ url_for('predict')}}"method="POST">
<label for="Age">Age (18 - 120):</label>
<input type="number" id="age" name="age" min="18" max="120", required><br><br>
<label for="Gender">Gender:</label>
<select id="gender" name="gender">
<option value="Other"></option>
<option value="M">M</option>
<option value="F">F</option>
</select><br><br>
<label for="Credit Score">Credit Score (0 - 1000):</label>
<input type="number" id="quantity" name="credit_score" min="0" max="1000", required><br><br>
<button type="submit" name="submit">Submit for Prediction</button>
<input type="reset" value="Reset" />
</form>
<!–– Results Text ––>
<body>
<h2> Results </h2>
<p> Based on these customer attributes, our model predicts a purchase probability of <b>{{ prediction_text }}</b> </p>
</body>
</html>