meeww commited on
Commit
9071ba0
·
1 Parent(s): 6e5432b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -49,8 +49,8 @@ init()
49
 
50
 
51
 
52
- def gen():
53
- init()
54
  crop()
55
  img0 = Image.open("0.png")
56
  img1 = Image.open("1.png")
@@ -61,7 +61,7 @@ def gen():
61
 
62
  iface = gr.Interface(
63
  fn=gen,
64
- inputs=None,
65
  outputs=gr.Gallery(label="Generated Skins")
66
  )
67
  iface.launch(inline=True,share=True,width=64,height=64,enable_queue=True)
 
49
 
50
 
51
 
52
+ def gen(seed):
53
+ init(seed)
54
  crop()
55
  img0 = Image.open("0.png")
56
  img1 = Image.open("1.png")
 
61
 
62
  iface = gr.Interface(
63
  fn=gen,
64
+ inputs="text",
65
  outputs=gr.Gallery(label="Generated Skins")
66
  )
67
  iface.launch(inline=True,share=True,width=64,height=64,enable_queue=True)