Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
115 |
default= gr.Radio(['Low risk of defaulting', 'High risk of defaulting'],label="Chances Of Defaulting")
|
116 |
|
117 |
btn = gr.Button("PREDICT")
|
118 |
-
btn.click(fn=credit_run, inputs=[person_age,Person_Emp_Length,Home_Ownership_Status,Person_Defaulted_in_History,Credit_Intent,Type_Of_Credit,Person_Income,
|
119 |
gr.Examples(
|
120 |
[["23","2","RENT","N","EDUCATION","A","12000","30000","8.9","6"],
|
121 |
["35","10","OWN","N","MEDICAL","C","20000","40000","8.3","8"],
|
@@ -124,6 +124,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
124 |
["41","18","OWN","Y","PERSONAL","A","10000","300000","14.3","4"],
|
125 |
["30","7","OTHER","Y","MEDICAL","C","20000","1000000","7.5","10"]],
|
126 |
|
127 |
-
inputs=[person_age,Person_Emp_Length,Home_Ownership_Status,Person_Defaulted_in_History,Credit_Intent,Type_Of_Credit,Person_Income,
|
128 |
)
|
129 |
demo.launch(debug=True)
|
|
|
115 |
default= gr.Radio(['Low risk of defaulting', 'High risk of defaulting'],label="Chances Of Defaulting")
|
116 |
|
117 |
btn = gr.Button("PREDICT")
|
118 |
+
btn.click(fn=credit_run, inputs=[person_age,Person_Emp_Length,Home_Ownership_Status,Person_Defaulted_in_History,Credit_Intent,Type_Of_Credit,Person_Income,Credit_Amount,Interest_Rate,Person_Credit_History_Length], outputs=[default])
|
119 |
gr.Examples(
|
120 |
[["23","2","RENT","N","EDUCATION","A","12000","30000","8.9","6"],
|
121 |
["35","10","OWN","N","MEDICAL","C","20000","40000","8.3","8"],
|
|
|
124 |
["41","18","OWN","Y","PERSONAL","A","10000","300000","14.3","4"],
|
125 |
["30","7","OTHER","Y","MEDICAL","C","20000","1000000","7.5","10"]],
|
126 |
|
127 |
+
inputs=[person_age,Person_Emp_Length,Home_Ownership_Status,Person_Defaulted_in_History,Credit_Intent,Type_Of_Credit,Person_Income,Credit_Amount,Interest_Rate,Person_Credit_History_Length]
|
128 |
)
|
129 |
demo.launch(debug=True)
|