Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,15 +54,19 @@ def gen(seed):
|
|
| 54 |
numpy.random.seed(int(seed))
|
| 55 |
init()
|
| 56 |
crop()
|
| 57 |
-
|
|
|
|
| 58 |
for i in range(4):
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
iface = gr.Interface(
|
| 63 |
fn=gen,
|
| 64 |
inputs=gr.Slider(0,1000,500,step = 0.01),
|
| 65 |
-
outputs=gr.Gallery(label="Generated Skins")
|
| 66 |
|
| 67 |
)
|
| 68 |
-
iface.launch(inline=True,share=True,width=
|
|
|
|
| 54 |
numpy.random.seed(int(seed))
|
| 55 |
init()
|
| 56 |
crop()
|
| 57 |
+
imgArrSmall = []
|
| 58 |
+
imgArrLarge = []
|
| 59 |
for i in range(4):
|
| 60 |
+
img = Image.open(str(i)+".png")
|
| 61 |
+
imgArrSmall.append(i)
|
| 62 |
+
img = img.resize((900,900)),Image,ANTIALIAS)
|
| 63 |
+
imgArrLarge.append(i)
|
| 64 |
+
return imgArrSmall, imgArrLarge
|
| 65 |
|
| 66 |
iface = gr.Interface(
|
| 67 |
fn=gen,
|
| 68 |
inputs=gr.Slider(0,1000,500,step = 0.01),
|
| 69 |
+
outputs=[gr.Gallery(label="Generated Skins Small"),gr.Gallery(label="Generated Skins Large")]
|
| 70 |
|
| 71 |
)
|
| 72 |
+
iface.launch(inline=True,share=True,width=64,height=64,enable_queue=True)
|