markytools commited on
Commit
a2001aa
·
1 Parent(s): 31cf632

updated app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -318,8 +318,8 @@ if uploaded_file is not None:
318
  rankedAttr = rankedAttr.detach().cpu().numpy()[0][0]
319
  rankedAttr = gray2rgb(rankedAttr)
320
  mplotfig, _ = visualize_image_attr(rankedAttr, origImgNP, method='blended_heat_map', cmap='RdYlGn')
321
- fig = mplotfig.figure(figsize=(8,8))
322
- st.pyplot(fig)
323
  # mplotfig.savefig(outputDir + '{}_shapley_gl.png'.format(nameNoExt))
324
  # mplotfig.clear()
325
  # plt.close(mplotfig)
 
318
  rankedAttr = rankedAttr.detach().cpu().numpy()[0][0]
319
  rankedAttr = gray2rgb(rankedAttr)
320
  mplotfig, _ = visualize_image_attr(rankedAttr, origImgNP, method='blended_heat_map', cmap='RdYlGn')
321
+ # fig = mplotfig.figure(figsize=(8,8))
322
+ st.pyplot(mplotfig)
323
  # mplotfig.savefig(outputDir + '{}_shapley_gl.png'.format(nameNoExt))
324
  # mplotfig.clear()
325
  # plt.close(mplotfig)