akhaliq HF staff commited on
Commit
9a34825
1 Parent(s): e8b1f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -41,6 +41,7 @@ def inference(input_image):
41
  # plot the semantic segmentation predictions of 21 classes in each color
42
  r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
43
  r.putpalette(colors)
 
44
  plt.savefig('out.png')
45
  return 'out.png'
46
 
 
41
  # plot the semantic segmentation predictions of 21 classes in each color
42
  r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
43
  r.putpalette(colors)
44
+ plt.imshow(r)
45
  plt.savefig('out.png')
46
  return 'out.png'
47