Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,29 +52,29 @@ def generate(num_images, interpolate):
|
|
52 |
|
53 |
####################################################################
|
54 |
# Graphical User Interface
|
55 |
-
|
56 |
-
demo = gr.Blocks()
|
57 |
-
|
58 |
def infer(num_images, interpolate):
|
59 |
img = generate(round(num_images), interpolate)
|
60 |
imgs = list(img)
|
61 |
return imgs
|
|
|
|
|
62 |
|
63 |
with demo:
|
64 |
gr.Markdown(
|
65 |
"""
|
66 |
# EmojiGAN
|
67 |
-
Generate Emojis with AI
|
68 |
""")
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
|
|
|
73 |
|
74 |
out = gr.Gallery()
|
75 |
|
76 |
-
submit.click(fn=
|
77 |
-
inputs=[
|
78 |
outputs=out)
|
79 |
|
80 |
demo.launch()
|
|
|
52 |
|
53 |
####################################################################
|
54 |
# Graphical User Interface
|
|
|
|
|
|
|
55 |
def infer(num_images, interpolate):
|
56 |
img = generate(round(num_images), interpolate)
|
57 |
imgs = list(img)
|
58 |
return imgs
|
59 |
+
|
60 |
+
demo = gr.Blocks()
|
61 |
|
62 |
with demo:
|
63 |
gr.Markdown(
|
64 |
"""
|
65 |
# EmojiGAN
|
66 |
+
Generate Emojis with AI
|
67 |
""")
|
68 |
+
seed = gr.inputs.Slider(default=1, label="Semilla", minimum=1, maximum=10000, step=1)
|
69 |
+
n_imgs = gr.inputs.Slider(default=1, label="Num Images", minimum=1, maximum=9, step=1)
|
70 |
+
text = gr.Textbox(label="", visible=False)
|
71 |
|
72 |
+
submit = gr.Button("Generate")
|
73 |
|
74 |
out = gr.Gallery()
|
75 |
|
76 |
+
submit.click(fn=initiate,
|
77 |
+
inputs=[seed, n_imgs, text],
|
78 |
outputs=out)
|
79 |
|
80 |
demo.launch()
|