harish199 commited on
Commit
4def6fe
1 Parent(s): 6a7bd95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -84,15 +84,15 @@ with gr.Blocks() as demo:
84
  with gr.Row():
85
  with gr.Column(scale=1,min_width=600):
86
  gr.Image("non_payment_logo.jpg").style(height='7')
87
- person_age=gr.Slider(label="Person Age(In Years)", minimum=18, maximum=90, step=1)
88
- Pererson_Emp_Length=gr.Slider(label="Pererson Emp Length(In Years)", minimum=0, maximum=60, step=1)
89
 
90
  with gr.Column(scale=2,min_width=600):
91
  with gr.Row():
92
  with gr.Column(scale=1,min_width=400):
93
  Home_Ownership_Status=gr.Radio(['MORTGAGE', 'OTHER','OWN', 'RENT'],label="Home Ownership Status")
94
  with gr.Column(scale=2,min_width=100):
95
- Person_Defaulted_in_History=gr.Radio(['0', '1'],label="Person Defaulted in History")
96
 
97
  with gr.Row():
98
  with gr.Column(scale=3,min_width=300):
@@ -101,14 +101,14 @@ with gr.Blocks() as demo:
101
  Type_Of_Credit=gr.Dropdown(['A','B', 'C', 'D', 'E','F', 'G'],label="Type Of Credit")
102
  with gr.Row():
103
  with gr.Column(scale=3,min_width=300):
104
- Person_Income=gr.Number(label="Person Income(per month)")
105
  with gr.Column(scale=4,min_width=300):
106
- Credit_Amount=gr.Number(label="Credit Amount")
107
  with gr.Row():
108
  with gr.Column(scale=3,min_width=300):
109
  Interest_Rate=gr.Number(label="Interest Rate")
110
  with gr.Column(scale=4,min_width=300):
111
- Person_Credit_History_Length=gr.Number(label="Person's Credit History Length")
112
  with gr.Row():
113
  with gr.Column():
114
  default= gr.Radio(['Low risk of defaulting', 'High risk of defaulting'])
 
84
  with gr.Row():
85
  with gr.Column(scale=1,min_width=600):
86
  gr.Image("non_payment_logo.jpg").style(height='7')
87
+ person_age=gr.Slider(label="Customer Age(In Years)", minimum=18, maximum=90, step=1)
88
+ Person_Emp_Length=gr.Slider(label="Person Emp Length(In Years)", minimum=0, maximum=60, step=1)
89
 
90
  with gr.Column(scale=2,min_width=600):
91
  with gr.Row():
92
  with gr.Column(scale=1,min_width=400):
93
  Home_Ownership_Status=gr.Radio(['MORTGAGE', 'OTHER','OWN', 'RENT'],label="Home Ownership Status")
94
  with gr.Column(scale=2,min_width=100):
95
+ Person_Defaulted_in_History=gr.Radio(['0', '1'],label="Missed Payment in History")
96
 
97
  with gr.Row():
98
  with gr.Column(scale=3,min_width=300):
 
101
  Type_Of_Credit=gr.Dropdown(['A','B', 'C', 'D', 'E','F', 'G'],label="Type Of Credit")
102
  with gr.Row():
103
  with gr.Column(scale=3,min_width=300):
104
+ Person_Income=gr.Number(label="Customer Income(per month)")
105
  with gr.Column(scale=4,min_width=300):
106
+ Credit_Amount=gr.Number(label="Total Amount")
107
  with gr.Row():
108
  with gr.Column(scale=3,min_width=300):
109
  Interest_Rate=gr.Number(label="Interest Rate")
110
  with gr.Column(scale=4,min_width=300):
111
+ Person_Credit_History_Length=gr.Number(label="Customer's Credit History Length")
112
  with gr.Row():
113
  with gr.Column():
114
  default= gr.Radio(['Low risk of defaulting', 'High risk of defaulting'])