Made the image crop smaller
Browse files
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
|