meeww commited on
Commit
59f395e
·
1 Parent(s): 2c53f33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -54,19 +54,17 @@ def gen(seed):
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)
 
54
  numpy.random.seed(int(seed))
55
  init()
56
  crop()
57
+ imgArr = []
 
58
  for i in range(4):
59
  img = Image.open(str(i)+".png")
60
+ imgArr.append(i)
61
+
62
+ return imgArr
 
63
 
64
  iface = gr.Interface(
65
  fn=gen,
66
  inputs=gr.Slider(0,1000,500,step = 0.01),
67
+ outputs=gr.Gallery(label="Generated Skins")
68
 
69
  )
70
  iface.launch(inline=True,share=True,width=64,height=64,enable_queue=True)