hlnicholls commited on
Commit
f83ec42
1 Parent(s): 47da41e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -69,7 +69,8 @@ if len(gene_list) > 1:
69
  shap_values = explainer.shap_values(df)
70
  summary_plot = shap.summary_plot(shap_values, df, show=False)
71
  st.caption("SHAP Summary Plot of All Input Genes")
72
- components.html(summary_plot, scrolling = True)
 
73
 
74
  else:
75
  pass
@@ -87,7 +88,8 @@ if len(input_gene) == 1:
87
  shap_values.values,
88
  df2,
89
  show=False)
90
- components.html(force_plot, scrolling = True)
 
91
  else:
92
  pass
93
 
 
69
  shap_values = explainer.shap_values(df)
70
  summary_plot = shap.summary_plot(shap_values, df, show=False)
71
  st.caption("SHAP Summary Plot of All Input Genes")
72
+ st.pyplot(fig=summary_plot)
73
+ #components.html(summary_plot, scrolling = True)
74
 
75
  else:
76
  pass
 
88
  shap_values.values,
89
  df2,
90
  show=False)
91
+ #components.html(force_plot, scrolling = True)
92
+ st.pyplot(fig=force_plot)
93
  else:
94
  pass
95