analist commited on
Commit
f2dabd3
·
1 Parent(s): d1f775d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ with col1:
121
  submitted = st.form_submit_button("Submit")
122
  if submitted:
123
  col2.info('Predicting')
124
- new_demand = np.array(list(mapping(county=county, sex=sex, property_type=property_type, loan=loan, income=income, loan_amount=loan_amount).values()))
125
  if model_choice == 'Tree':
126
  col2.markdown(tree.predict(new_demand))
127
  elif model_choice == 'RandomForest':
 
121
  submitted = st.form_submit_button("Submit")
122
  if submitted:
123
  col2.info('Predicting')
124
+ new_demand = np.array([list(mapping(county=county, sex=sex, property_type=property_type, loan=loan, income=income, loan_amount=loan_amount).values())])
125
  if model_choice == 'Tree':
126
  col2.markdown(tree.predict(new_demand))
127
  elif model_choice == 'RandomForest':