gatesla commited on
Commit
2a5a2e9
1 Parent(s): 9434aee

Made the image crop smaller

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def make_prediction(img, feature_extractor, model):
31
 
32
  def fig2img(fig):
33
  buf = io.BytesIO()
34
- fig.savefig(buf)
35
  buf.seek(0)
36
  img = Image.open(buf)
37
  return img
 
31
 
32
  def fig2img(fig):
33
  buf = io.BytesIO()
34
+ fig.savefig(buf, bbox_inches="tight")
35
  buf.seek(0)
36
  img = Image.open(buf)
37
  return img