Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,15 +43,16 @@ def crop():
|
|
43 |
imgcrop.save(str(i)+".png")
|
44 |
fav = img.crop((10,10,18,18))
|
45 |
fav.save("icon.png")
|
46 |
-
init(
|
47 |
-
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
|
|
53 |
def gen(seed):
|
54 |
-
|
|
|
55 |
crop()
|
56 |
img0 = Image.open("0.png")
|
57 |
img1 = Image.open("1.png")
|
|
|
43 |
imgcrop.save(str(i)+".png")
|
44 |
fav = img.crop((10,10,18,18))
|
45 |
fav.save("icon.png")
|
46 |
+
init()
|
|
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
+
import numpy
|
53 |
def gen(seed):
|
54 |
+
numpy.random.seed(seed)
|
55 |
+
init()
|
56 |
crop()
|
57 |
img0 = Image.open("0.png")
|
58 |
img1 = Image.open("1.png")
|