Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,17 +53,13 @@ def generate(num_images, interpolate):
|
|
53 |
####################################################################
|
54 |
# Graphical User Interface
|
55 |
|
56 |
-
|
57 |
|
58 |
def infer(num_images, interpolate):
|
59 |
img = generate(round(num_images), interpolate)
|
60 |
imgs = list(img)
|
61 |
return imgs
|
62 |
|
63 |
-
demo = gr.Blocks()
|
64 |
-
|
65 |
-
output = gr.Gallery()
|
66 |
-
|
67 |
with demo:
|
68 |
gr.Markdown(
|
69 |
"""
|
@@ -74,7 +70,9 @@ with demo:
|
|
74 |
interpolate = gr.inputs.Checkbox(default=False, label="Interpolate")
|
75 |
submit = gr.Button("Generate")
|
76 |
|
77 |
-
|
|
|
|
|
78 |
submit.click(fn=infer,
|
79 |
inputs=[images_num, interpolate],
|
80 |
outputs=out)
|
|
|
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 |
"""
|
|
|
70 |
interpolate = gr.inputs.Checkbox(default=False, label="Interpolate")
|
71 |
submit = gr.Button("Generate")
|
72 |
|
73 |
+
|
74 |
+
out = gr.Gallery()
|
75 |
+
|
76 |
submit.click(fn=infer,
|
77 |
inputs=[images_num, interpolate],
|
78 |
outputs=out)
|