meeww commited on
Commit
ec03d09
·
1 Parent(s): 36f496a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -54,15 +54,19 @@ def gen(seed):
54
  numpy.random.seed(int(seed))
55
  init()
56
  crop()
57
- imgArr = []
 
58
  for i in range(4):
59
- imgArr.append(Image.open(str(i)+".png"))
60
- return imgArr
 
 
 
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=64px,height=64px,enable_queue=True)
 
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)