Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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)
|