Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,10 +85,9 @@ def infer(prompt, ip_adapter_image, negative_prompt="", seed=42, randomize_seed=
|
|
| 85 |
return image, seed
|
| 86 |
|
| 87 |
examples = [
|
| 88 |
-
["A
|
| 89 |
-
["
|
| 90 |
-
["
|
| 91 |
-
["A delicious ceviche cheesecake slice", "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Ceviche_mixto.jpg/640px-Ceviche_mixto.jpg"],
|
| 92 |
]
|
| 93 |
|
| 94 |
css="""
|
|
@@ -175,7 +174,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 175 |
gr.Examples(
|
| 176 |
examples=examples,
|
| 177 |
fn=infer,
|
| 178 |
-
inputs=[prompt, ip_adapter_image],
|
| 179 |
outputs=[result, seed],
|
| 180 |
cache_examples="lazy"
|
| 181 |
)
|
|
|
|
| 85 |
return image, seed
|
| 86 |
|
| 87 |
examples = [
|
| 88 |
+
["A dog", "minta.jpg", 0.3],
|
| 89 |
+
["A cat", "blue_hair.png", 0.45],
|
| 90 |
+
["", "abaporu.jpg", 1.0],
|
|
|
|
| 91 |
]
|
| 92 |
|
| 93 |
css="""
|
|
|
|
| 174 |
gr.Examples(
|
| 175 |
examples=examples,
|
| 176 |
fn=infer,
|
| 177 |
+
inputs=[prompt, ip_adapter_image, ip_adapter_scale],
|
| 178 |
outputs=[result, seed],
|
| 179 |
cache_examples="lazy"
|
| 180 |
)
|