ayethuzar commited on
Commit
227f29f
·
unverified ·
1 Parent(s): c808e5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -187,7 +187,17 @@ if center_button:
187
  html_str2 = f"""<style>p.a {{font: bold {28}px Courier;color:#1D5D9B;}}</style><p class="a">{result2}</p>"""
188
  st.markdown(html_str2, unsafe_allow_html=True)
189
 
 
 
 
 
 
190
 
 
 
 
 
 
191
 
192
 
193
 
 
187
  html_str2 = f"""<style>p.a {{font: bold {28}px Courier;color:#1D5D9B;}}</style><p class="a">{result2}</p>"""
188
  st.markdown(html_str2, unsafe_allow_html=True)
189
 
190
+ st.markdown("<h4 style='text-align: center; color: #1B9E91;'>SHAP Summary Plot</h4>", unsafe_allow_html=True)
191
+ st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
192
+ shap.plots.beeswarm(shap_values_opt, max_display=10)
193
+ st.markdown("</div>", unsafe_allow_html=True)
194
+ st.pyplot()
195
 
196
+ st.markdown("<h4 style='text-align: center; color: #1B9E91;'>SHAP Interaction Plot</h4>", unsafe_allow_html=True)
197
+ st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
198
+ shap.summary_plot(shap_interaction_opt, max_display=10)
199
+ st.markdown("</div>", unsafe_allow_html=True)
200
+ st.pyplot()
201
 
202
 
203