Tihsrah-CD commited on
Commit
7440285
1 Parent(s): 4ccb276

changes to app.py with option and path

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -37,7 +37,7 @@ def main():
37
  Amount_invested_monthly = st.number_input("Amount Invested Monthly")
38
  Monthly_Balance = st.number_input("Monthly_Balance")
39
 
40
- Credit_Mix = st.radio("Credit Mix", options=("Bad", "Good", "Standard"), index=1)
41
 
42
  submit_button = st.button("Submit")
43
 
@@ -61,8 +61,8 @@ def process_form_data(Month, Age, Occupation, Annual_Income, Monthly_Inhand_Sala
61
  Total_Accounts = int(Num_Bank_Accounts) + int(Num_Credit_Card)
62
  Savings_to_Income_Ratio = Monthly_Savings / Annual_Income
63
 
64
- encoders = joblib.load('v2\encoders.joblib')
65
- model = joblib.load('v2\Random_Forest.joblib')
66
 
67
  dataDict = {"Month": Month, 'Occupation': Occupation, 'Num_Bank_Accounts': Num_Bank_Accounts, 'Num_Credit_Card': Num_Credit_Card,
68
  'Interest_Rate': Interest_Rate, 'Num_of_Loan': Num_of_Loan, 'Credit_Mix': Credit_Mix, 'Credit_History_Age': Credit_History_Age,
 
37
  Amount_invested_monthly = st.number_input("Amount Invested Monthly")
38
  Monthly_Balance = st.number_input("Monthly_Balance")
39
 
40
+ Credit_Mix = st.radio("Credit Mix", options=("Bad", "Good"), index=1)
41
 
42
  submit_button = st.button("Submit")
43
 
 
61
  Total_Accounts = int(Num_Bank_Accounts) + int(Num_Credit_Card)
62
  Savings_to_Income_Ratio = Monthly_Savings / Annual_Income
63
 
64
+ encoders = joblib.load('encoders.joblib')
65
+ model = joblib.load('Random_Forest.joblib')
66
 
67
  dataDict = {"Month": Month, 'Occupation': Occupation, 'Num_Bank_Accounts': Num_Bank_Accounts, 'Num_Credit_Card': Num_Credit_Card,
68
  'Interest_Rate': Interest_Rate, 'Num_of_Loan': Num_of_Loan, 'Credit_Mix': Credit_Mix, 'Credit_History_Age': Credit_History_Age,