multimodalart HF staff commited on
Commit
8245d19
1 Parent(s): e3acd43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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 photo of a lavender cat", "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/640px-Cat_November_2010-1a.jpg"],
89
- ["Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/Astronaut_EVA.jpg/640px-Astronaut_EVA.jpg"],
90
- ["An astronaut riding a green horse", "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Haflinger_in-motion.jpg/640px-Haflinger_in-motion.jpg"],
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
  )