Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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':
|