harish199 commited on
Commit
3e2cf9c
1 Parent(s): d676dae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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="person income(per month)"),
88
- gr.Radio(['MORTGAGE', 'OTHER','OWN', 'RENT']),
89
- gr.Slider(label="person emp length(In Years)", minimum=0, maximum=60, step=1),
90
- gr.Radio(['DEBTCONSOLIDATION', 'EDUCATION', 'HOMEIMPROVEMENT', 'MEDICAL', 'PERSONAL', 'VENTURE']),
91
- gr.Radio(['A','B', 'C', 'D', 'E','F', 'G']),
92
- gr.Number(label="loan amnt"),
93
- gr.Number(label="loan int rate"),
94
- gr.Radio(['0', '1']),
95
- gr.Number(label="cb personcred hist length"),
96
  ],
97
  outputs = "text",
98
  title = "Credit Risk Predictor",
99
- examples = [[23,25000,'RENT',2,'EDUCATION','A',30000,8.9,'0',6],
100
- [34,50000,'OWN',1,'MEDICAL','B',62000,10.65,'0',3],
101
- [42,30000,"MORTGAGE",12,'HOMEIMPROVEMENT','C',800000,7.9,'1',8],
102
- [42,20000,"MORTGAGE",10,'PERSONAL','F',100000,15.25,'1',5]]
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)