Spaces:
Runtime error
Runtime error
updated the app.py code to give meaning to textboxes
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ def predict_loan_default(user_input):
|
|
27 |
|
28 |
# Input fields for the user to provide data
|
29 |
age = st.number_input("Age", min_value=18, max_value=100, value=30)
|
30 |
-
education = st.selectbox("Education
|
31 |
-
loan_amount = st.number_input("Loan Amount", min_value=0, value=5000)
|
32 |
asset_cost = st.number_input("Asset Cost", min_value=0, value=6000)
|
33 |
-
no_of_loans = st.number_input("
|
34 |
no_of_curr_loans = st.number_input("Number of Current Loans", min_value=0, value=1)
|
35 |
last_delinq_none = st.selectbox("Previously failed to make required payments on time ?(1 for True, 0 for False)", options=[1, 0])
|
36 |
|
|
|
27 |
|
28 |
# Input fields for the user to provide data
|
29 |
age = st.number_input("Age", min_value=18, max_value=100, value=30)
|
30 |
+
education = st.selectbox("Highest Education (1 for Secondary, 2 for Undergrad)", options=label_encoder_education.classes_)
|
31 |
+
loan_amount = st.number_input("Requested Loan Amount", min_value=0, value=5000)
|
32 |
asset_cost = st.number_input("Asset Cost", min_value=0, value=6000)
|
33 |
+
no_of_loans = st.number_input("Loans collected to date", min_value=0, value=2)
|
34 |
no_of_curr_loans = st.number_input("Number of Current Loans", min_value=0, value=1)
|
35 |
last_delinq_none = st.selectbox("Previously failed to make required payments on time ?(1 for True, 0 for False)", options=[1, 0])
|
36 |
|