Spaces:
Build error
Build error
LethallyHealthy
commited on
Commit
·
28361c2
1
Parent(s):
c450eeb
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def st_shap(plot, height=None):
|
|
53 |
if st.button("Calculate Your House Price!"):
|
54 |
results = predictor.make_a_prediction(data)
|
55 |
opt_f = '{0:.2f}'.format(results[0][0])
|
56 |
-
unopt_f = '{0:.2f}'.format(results[
|
57 |
st.subheader('Optimized: $' + opt_f)
|
58 |
st.subheader('Unoptimized: $' + unopt_f)
|
59 |
st.write("Below are the SHAP graphs which can be used to explain the decisions made by the model using the features provided for the *optimized* results.")
|
|
|
53 |
if st.button("Calculate Your House Price!"):
|
54 |
results = predictor.make_a_prediction(data)
|
55 |
opt_f = '{0:.2f}'.format(results[0][0])
|
56 |
+
unopt_f = '{0:.2f}'.format(results[1][0])
|
57 |
st.subheader('Optimized: $' + opt_f)
|
58 |
st.subheader('Unoptimized: $' + unopt_f)
|
59 |
st.write("Below are the SHAP graphs which can be used to explain the decisions made by the model using the features provided for the *optimized* results.")
|