-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (146 loc) · 7.51 KB
/
index.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pyscript.net/releases/2023.05.1/pyscript.css" />
<script defer src="https://pyscript.net/releases/2023.05.1/pyscript.js"></script>
<!-- Bootstrap CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="./loan.css">
<link rel="shortcut icon" href="./static/favicon.ico">
<title>Loan Prediction</title>
</head>
<body>
<py-config src="./pyscript.toml"></py-config>
<py-script src="./main.py"></py-script>
<h1 class="center">Loan Prediction App</h1>
<div class="container">
<div align="left">
<hr>
<h3>Note:</h3>
<ul>
<li>The Machine Learning model was trained from
<a href="https://www.kaggle.com/altruistdelhite04/loan-prediction-problem-dataset"
target="_blank">this dataset</a>
</li>
<li>This app does not give 100% accuracy. </li>
</ul>
</div>
<form action="" method="dialog">
<hr>
<div class="form-group flex-column flex-sm-row">
<label>Select Gender : </label>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Gender" id="male" value="male">
<label class="form-check-label" for="male">Male</label>
</div>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Gender" id="female" value="female">
<label class="form-check-label" for="female">Female</label>
</div>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label>Are you Married : </label>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Married" id="yes" value="yes">
<label class="form-check-label" for="yes">Yes</label>
</div>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Married" id="no" value="no">
<label class="form-check-label" for="no">No</label>
</div>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="dependents">How many dependents : </label>
<select class="form-select" name="Dependents" id="Dependents">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">More than 3</option>
</select>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label>Select your Education : </label>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Education" id="Graduate"
value="Graduate">
<label class="form-check-label" for="Graduate">Graduate</label>
</div>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Education" id="Not Graduate"
value="Not Graduate">
<label class="form-check-label" for="Not Graduate">Not Graduate</label>
</div>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label>Are you Self Employed : </label>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Self_Employed" id="s_yes" value="s_yes">
<label class="form-check-label" for="s_yes">Yes</label>
</div>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Self_Employed" id="s_no" value="s_no">
<label class="form-check-label" for="s_no">No</label>
</div>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="LoanAmount">Enter your Loan Amount : </label>
<input required class="form-control" type="number" name="LoanAmount" id="LoanAmount">
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="LoanAmountTerm">Enter your Loan Amount Term in months : </label>
<input required class="form-control" type="number" name="Loan_Amount_Term" id="LoanAmountTerm">
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label>Have you cleared all your previous loans : </label>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Credit_History" id="c_yes"
value="c_yes">
<label class="form-check-label" for="c_yes">Yes</label>
</div>
<div class="form-check form-check-inline">
<input required class="form-check-input" type="radio" name="Credit_History" id="c_no" value="c_no">
<label class="form-check-label" for="c_no">No</label>
</div>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="Property_Area">Select your Property Area : </label>
<select class="form-select" name="Property_Area" id="Property_Area">
<option value="Urban">Urban</option>
<option value="Semiurban">Semiurban</option>
<option value="Rural">Rural</option>
</select>
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="ApplicantIncome">Enter Applicant Income : </label>
<input required class="form-control" type="number" name="ApplicantIncome" id="ApplicantIncome">
</div>
<hr>
<div class="form-group flex-column flex-sm-row">
<label for="CoapplicantIncome">Enter Coapplicant Income : </label>
<input required class="form-control" type="number" name="CoapplicantIncome" id="CoapplicantIncome">
</div>
<br>
<div class="prediction" hidden>
With an Accuracy of 80%. <br> The Model predicted that you
<b><span class="result"></b></span> get the loan.
</div>
<br>
<button class="submit btn btn-dark" py-click="get_predictions()" >SUBMIT</button>
</div>
</form>
<br>
</body>
</html>