Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,8 @@ def inference(input_image):
|
|
| 42 |
r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
|
| 43 |
r.putpalette(colors)
|
| 44 |
plt.imshow(r)
|
| 45 |
-
plt.
|
|
|
|
| 46 |
return 'out.png'
|
| 47 |
|
| 48 |
|
|
|
|
| 42 |
r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
|
| 43 |
r.putpalette(colors)
|
| 44 |
plt.imshow(r)
|
| 45 |
+
plt.axis('off')
|
| 46 |
+
plt.savefig('out.png',bbox_inches='tight')
|
| 47 |
return 'out.png'
|
| 48 |
|
| 49 |
|