bharat-raghunathan commited on
Commit
fc105fe
1 Parent(s): 2af298c

Modify examples in app

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,11 +19,11 @@ def infer(prompt):
19
 
20
  output = gr.Gallery(label="Outputs").style(grid=(2,2))
21
 
22
- gr.Examples(["realistic picture of a man eating a dosa",
23
- "realistic picture of a dosa on a plate",
24
- "realistic picture of a dosa in a restaurant"
25
  ],
26
- prompt, gallery, generate_images, cache_examples=True)
27
  gr.Markdown('Demo created by [Bharat Raghunathan](https://huggingface.co/bharat-raghunathan/)')
28
  # pass function, input type for prompt, the output for multiple images
29
  gr.Interface(infer, inputs=["text"], outputs=[output]).launch()
 
19
 
20
  output = gr.Gallery(label="Outputs").style(grid=(2,2))
21
 
22
+ gr.Examples([["realistic picture of a man eating a dosa"],
23
+ ["realistic picture of a dosa on a plate"],
24
+ ["realistic picture of a dosa in a restaurant"],
25
  ],
26
+ [prompt], gallery, generate_images, cache_examples=True)
27
  gr.Markdown('Demo created by [Bharat Raghunathan](https://huggingface.co/bharat-raghunathan/)')
28
  # pass function, input type for prompt, the output for multiple images
29
  gr.Interface(infer, inputs=["text"], outputs=[output]).launch()