Ahsen Khaliq commited on
Commit
85f7abe
1 Parent(s): a25d8e7

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 = 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,depth=2,upscale = 7)
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 = 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,depth=2,upscale = 14)
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