LethallyHealthy commited on
Commit
5658180
·
1 Parent(s): a428eda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,9 +51,9 @@ def st_shap(plot, height=None):
51
  if st.button("Calculate Your House Price!"):
52
  results = predictor.make_a_prediction(data)
53
  st.write('{0:.2f}'.format(results[0]))
54
- objects = predictor.create_shap_models(data)
55
- for obj in objects:
56
- st_shap(obj)
57
 
58
 
59
 
 
51
  if st.button("Calculate Your House Price!"):
52
  results = predictor.make_a_prediction(data)
53
  st.write('{0:.2f}'.format(results[0]))
54
+ force_plot = predictor.create_shap_models(data)
55
+ st_shap(force_plot)
56
+
57
 
58
 
59