Ahsen Khaliq commited on
Commit
d10880f
1 Parent(s): b4fbd36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from pyxelate import Pyx, Pal
5
  def pixel(image):
6
  image = io.imread(image.name)
7
  downsample_by = 14 # new image will be 1/14th of the original in size
8
- palette = 7 # find 7 colors
9
  # 1) Instantiate Pyx transformer
10
  pyx = Pyx(factor=downsample_by, palette=palette)
11
  # 2) fit an image, allow Pyxelate to learn the color palette
 
5
  def pixel(image):
6
  image = io.imread(image.name)
7
  downsample_by = 14 # new image will be 1/14th of the original in size
8
+ palette = 5 # find 7 colors
9
  # 1) Instantiate Pyx transformer
10
  pyx = Pyx(factor=downsample_by, palette=palette)
11
  # 2) fit an image, allow Pyxelate to learn the color palette