linoyts HF Staff commited on
Commit
eb41ff5
·
verified ·
1 Parent(s): 4f34545

add gr.Examples

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -260,7 +260,14 @@ with gr.Blocks(css=css) as demo:
260
 
261
  rewrite_prompt = gr.Checkbox(label="Rewrite prompt", value=True)
262
 
263
- # gr.Examples(examples=examples, inputs=[prompt], outputs=[result, seed], fn=infer, cache_examples=False)
 
 
 
 
 
 
 
264
 
265
  gr.on(
266
  triggers=[run_button.click, prompt.submit],
 
260
 
261
  rewrite_prompt = gr.Checkbox(label="Rewrite prompt", value=True)
262
 
263
+ gr.Examples(examples=[
264
+ ["neon_sign.png", "change the text to read 'Qwen Image Edit is here'"],
265
+ ["cat_sitting.jpg", "make the cat floating in the air and holding a sign that reads 'this is fun' written with a blue crayon"],
266
+ ["pie.png", "turn the style of the photo to vintage comic book"]],
267
+ inputs=[input_image, prompt],
268
+ outputs=[result, seed],
269
+ fn=infer,
270
+ cache_examples=False)
271
 
272
  gr.on(
273
  triggers=[run_button.click, prompt.submit],