Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,21 +84,21 @@ demo = gr.Interface(
|
|
84 |
fn = credit_run,
|
85 |
inputs = [
|
86 |
gr.Slider(label="Person Age(In Years)", minimum=18, maximum=90, step=1),
|
87 |
-
gr.Number(label="
|
88 |
-
gr.Radio(['MORTGAGE', 'OTHER','OWN', 'RENT']),
|
89 |
-
gr.Slider(label="
|
90 |
-
gr.Radio(['DEBTCONSOLIDATION', 'EDUCATION', 'HOMEIMPROVEMENT', 'MEDICAL', 'PERSONAL', 'VENTURE']),
|
91 |
-
gr.Radio(['A','B', 'C', 'D', 'E','F', 'G']),
|
92 |
-
gr.Number(label="
|
93 |
-
gr.Number(label="
|
94 |
-
gr.Radio(['
|
95 |
-
gr.Number(label="
|
96 |
],
|
97 |
outputs = "text",
|
98 |
title = "Credit Risk Predictor",
|
99 |
-
examples = [[23,25000,'RENT',2,'EDUCATION','A',30000,8.9,'
|
100 |
-
[34,50000,'OWN',1,'MEDICAL','B',62000,10.65,'
|
101 |
-
[42,30000,"MORTGAGE",12,'HOMEIMPROVEMENT','C',800000,7.9,'
|
102 |
-
[42,20000,"MORTGAGE",10,'PERSONAL','F',100000,15.25,'
|
103 |
)
|
104 |
demo.launch(debug=True)
|
|
|
84 |
fn = credit_run,
|
85 |
inputs = [
|
86 |
gr.Slider(label="Person Age(In Years)", minimum=18, maximum=90, step=1),
|
87 |
+
gr.Number(label="Person Income(per month)"),
|
88 |
+
gr.Radio(['MORTGAGE', 'OTHER','OWN', 'RENT'],label="Home Ownership Status"),
|
89 |
+
gr.Slider(label="Pererson Emp Length(In Years)", minimum=0, maximum=60, step=1),
|
90 |
+
gr.Radio(['DEBTCONSOLIDATION', 'EDUCATION', 'HOMEIMPROVEMENT', 'MEDICAL', 'PERSONAL', 'VENTURE'],label="Credit Intent"),
|
91 |
+
gr.Radio(['A','B', 'C', 'D', 'E','F', 'G'],label="Type Of Credit"),
|
92 |
+
gr.Number(label="Loan Amount"),
|
93 |
+
gr.Number(label="Loan Interest Rate"),
|
94 |
+
gr.Radio(['N', 'Y'],label="Person Defaulted in History"),
|
95 |
+
gr.Number(label="Person's Credit History Length"),
|
96 |
],
|
97 |
outputs = "text",
|
98 |
title = "Credit Risk Predictor",
|
99 |
+
examples = [[23,25000,'RENT',2,'EDUCATION','A',30000,8.9,'N',6],
|
100 |
+
[34,50000,'OWN',1,'MEDICAL','B',62000,10.65,'N',3],
|
101 |
+
[42,30000,"MORTGAGE",12,'HOMEIMPROVEMENT','C',800000,7.9,'Y',8],
|
102 |
+
[42,20000,"MORTGAGE",10,'PERSONAL','F',100000,15.25,'Y',5]]
|
103 |
)
|
104 |
demo.launch(debug=True)
|