Spaces:
Running
on
Zero
Running
on
Zero
add gr.Examples (#4)
Browse files- add gr.Examples (eb41ff5eeb957ab89cd57d54c6d0b583255dfe3c)
- example images (36651a49849d7943f79758be5a7276f14f8119d2)
Co-authored-by: Linoy Tsaban <[email protected]>
- .gitattributes +3 -0
- app.py +8 -1
- cat_sitting.jpg +3 -0
- neon_sign.png +3 -0
- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
neon_sign.png
ADDED
![]() |
Git LFS Details
|
pie.png
ADDED
![]() |
Git LFS Details
|