mouseland commited on
Commit
736285e
·
verified ·
1 Parent(s): c034f55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,9 +60,8 @@ def plot_outlines(img, masks):
60
  #fig.clf()
61
  #plt.close(fig)
62
 
63
- img = plt.gcf()
64
  buf = io.BytesIO()
65
- figure.savefig(buf, bbox_inches='tight')
66
  buf.seek(0)
67
  output_pil_img = Image.open(buf)
68
  return output_pil_img
 
60
  #fig.clf()
61
  #plt.close(fig)
62
 
 
63
  buf = io.BytesIO()
64
+ fig.savefig(buf, bbox_inches='tight')
65
  buf.seek(0)
66
  output_pil_img = Image.open(buf)
67
  return output_pil_img