Spaces:
Build error
Build error
Update main.py
Browse files
main.py
CHANGED
|
@@ -30,8 +30,7 @@ cdict = {'red': [[0.00, 0.10, 0.10],
|
|
| 30 |
[0.75, 0.20, 0.20],
|
| 31 |
[1.00, 0.15, 0.15]]}
|
| 32 |
|
| 33 |
-
|
| 34 |
-
hamster_colormap = matplotlib.colors.LinearSegmentedColormap('hamster', segmentdata=cdict, N=256)
|
| 35 |
|
| 36 |
#simple image scaling to (nR x nC) size
|
| 37 |
def scale(im, nR, nC):
|
|
|
|
| 30 |
[0.75, 0.20, 0.20],
|
| 31 |
[1.00, 0.15, 0.15]]}
|
| 32 |
|
| 33 |
+
cm = matplotlib.colors.LinearSegmentedColormap('hamster', segmentdata=cdict, N=256)
|
|
|
|
| 34 |
|
| 35 |
#simple image scaling to (nR x nC) size
|
| 36 |
def scale(im, nR, nC):
|