Ahsen Khaliq commited on
Commit
4323731
1 Parent(s): bd2744f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def pixel(image):
7
  downsample_by = 3 # 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
12
  pyx.fit(image)
13
  # 3) transform image to pixel art using the learned color palette
 
7
  downsample_by = 3 # 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,depth=3)
11
  # 2) fit an image, allow Pyxelate to learn the color palette
12
  pyx.fit(image)
13
  # 3) transform image to pixel art using the learned color palette