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

add gr.Examples (#4)

Browse files

- add gr.Examples (eb41ff5eeb957ab89cd57d54c6d0b583255dfe3c)
- example images (36651a49849d7943f79758be5a7276f14f8119d2)


Co-authored-by: Linoy Tsaban <[email protected]>

Files changed (5) hide show
  1. .gitattributes +3 -0
  2. app.py +8 -1
  3. cat_sitting.jpg +3 -0
  4. neon_sign.png +3 -0
  5. pie.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ cat_sitting.jpg filter=lfs diff=lfs merge=lfs -text
37
+ neon_sign.png filter=lfs diff=lfs merge=lfs -text
38
+ pie.png filter=lfs diff=lfs merge=lfs -text
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],
cat_sitting.jpg ADDED

Git LFS Details

  • SHA256: f2920547afd30d0714b3738ffca5dcf80709ab4a71f4fa1b7b2c60b2f7532aec
  • Pointer size: 131 Bytes
  • Size of remote file: 245 kB
neon_sign.png ADDED

Git LFS Details

  • SHA256: fbad11ab5a8bb05d18398e9752d07ae09ea6d228d045fa31244a8dfefa0c1fbe
  • Pointer size: 132 Bytes
  • Size of remote file: 1.87 MB
pie.png ADDED

Git LFS Details

  • SHA256: a217239c1b6775a4903b786af93e110343bf99b8b8e08eb3cd6bdc6fbcd667b6
  • Pointer size: 132 Bytes
  • Size of remote file: 2.43 MB