Spaces:
Runtime error
Runtime error
Commit
•
d59d1e6
1
Parent(s):
dacc999
Update app.py
Browse files
app.py
CHANGED
@@ -27,5 +27,11 @@ with gr.Blocks() as demo:
|
|
27 |
level_image = gr.Image()
|
28 |
btn = gr.Button("Generate level")
|
29 |
btn.click(fn=update, inputs=prompt, outputs=level_image)
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
demo.launch()
|
|
|
27 |
level_image = gr.Image()
|
28 |
btn = gr.Button("Generate level")
|
29 |
btn.click(fn=update, inputs=prompt, outputs=level_image)
|
30 |
+
gr.Examples(
|
31 |
+
examples=["many pipes, many enemies, some blocks, high elevation", "little pipes, little enemies, many blocks, high elevation", "many pipes, some enemies", "no pipes, no enemies, many blocks"],
|
32 |
+
inputs=prompt,
|
33 |
+
outputs=level_image,
|
34 |
+
fn=update,
|
35 |
+
cache_examples=True,
|
36 |
+
)
|
37 |
demo.launch()
|