multimodalart HF staff commited on
Commit
d59d1e6
1 Parent(s): dacc999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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
- pass
 
 
 
 
 
 
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()