Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,11 +65,11 @@ def infer(prompt, negative_prompt, seed=42, randomize_seed=False, width=1024, he
|
|
| 65 |
return image, seed
|
| 66 |
|
| 67 |
examples = [
|
| 68 |
-
"a tiny dragon hatching from a crystal egg on Mars",
|
| 69 |
-
"a red panda holding a sign that says 'I love bamboo'",
|
| 70 |
-
"a photo of a capybara riding a tricycle in Paris. It is wearing a beret and a striped shirt.",
|
| 71 |
-
"an anime illustration of a delicious ramen bowl",
|
| 72 |
-
"A logo for a bookstore called 'The Whispering Page'. The logo should feature an open book with a tree growing out of it.",
|
| 73 |
]
|
| 74 |
|
| 75 |
css="""
|
|
@@ -169,7 +169,8 @@ Gradio demo for [Qwen-Image](https://huggingface.co/Qwen/Qwen-Image), a powerful
|
|
| 169 |
fn=infer,
|
| 170 |
inputs=[prompt, negative_prompt],
|
| 171 |
outputs=[result, seed],
|
| 172 |
-
cache_examples=
|
|
|
|
| 173 |
)
|
| 174 |
|
| 175 |
gr.on(
|
|
|
|
| 65 |
return image, seed
|
| 66 |
|
| 67 |
examples = [
|
| 68 |
+
["a tiny dragon hatching from a crystal egg on Mars"],
|
| 69 |
+
["a red panda holding a sign that says 'I love bamboo'"],
|
| 70 |
+
["a photo of a capybara riding a tricycle in Paris. It is wearing a beret and a striped shirt."],
|
| 71 |
+
["an anime illustration of a delicious ramen bowl"],
|
| 72 |
+
["A logo for a bookstore called 'The Whispering Page'. The logo should feature an open book with a tree growing out of it."],
|
| 73 |
]
|
| 74 |
|
| 75 |
css="""
|
|
|
|
| 169 |
fn=infer,
|
| 170 |
inputs=[prompt, negative_prompt],
|
| 171 |
outputs=[result, seed],
|
| 172 |
+
cache_examples=True,
|
| 173 |
+
cache_mode='lazy'
|
| 174 |
)
|
| 175 |
|
| 176 |
gr.on(
|