TheOneReborn commited on
Commit
d518e91
·
1 Parent(s): 0342b70

fix: typo in method

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def segment_image(image):
55
  prediction_resized = numpy.array(prediction_resized)
56
 
57
  # Apply a colormap for visualization
58
- colormap = cm.colormaps['jet']
59
  colored_mask = colormap(prediction_resized / numpy.max(prediction_resized))[:, :, :3] # Normalize & remove alpha
60
 
61
  # Convert PIL image to NumPy array
 
55
  prediction_resized = numpy.array(prediction_resized)
56
 
57
  # Apply a colormap for visualization
58
+ colormap = cm._colormaps['jet']
59
  colored_mask = colormap(prediction_resized / numpy.max(prediction_resized))[:, :, :3] # Normalize & remove alpha
60
 
61
  # Convert PIL image to NumPy array