Spaces:
Build error
Build error
LethallyHealthy
commited on
Commit
·
2ca2b3e
1
Parent(s):
38c9486
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,9 @@ def st_shap(plot, height=None):
|
|
52 |
#The button
|
53 |
if st.button("Calculate Your House Price!"):
|
54 |
results = predictor.make_a_prediction(data)
|
55 |
-
|
|
|
|
|
56 |
force_plot = predictor.create_shap_models(data)
|
57 |
st_shap(force_plot)
|
58 |
|
|
|
52 |
#The button
|
53 |
if st.button("Calculate Your House Price!"):
|
54 |
results = predictor.make_a_prediction(data)
|
55 |
+
results_f = '{0:.2f}'.format(results[0])
|
56 |
+
st.subheader('$' + result_f)
|
57 |
+
st.write("Below are the SHAP graphs which can be used to explain the decisions made by the model using the features provided.")
|
58 |
force_plot = predictor.create_shap_models(data)
|
59 |
st_shap(force_plot)
|
60 |
|