animrods commited on
Commit
b1dcff4
1 Parent(s): c8d7ddc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -42,10 +42,8 @@ def predict(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="",
42
  return image, seed
43
 
44
  examples = [
45
- ["A dog", "minta.jpeg", 0.4],
46
- ["A capybara", "king-min.png", 0.5],
47
- ["A cat", "blue_hair.png", 0.5],
48
- ["", "meow.jpeg", 1.0],
49
  ]
50
 
51
  css="""
@@ -73,6 +71,7 @@ with gr.Blocks(css=css) as demo:
73
  max_lines=1,
74
  placeholder="Enter your prompt",
75
  container=False,
 
76
  )
77
  run_button = gr.Button("Run", scale=0)
78
 
@@ -139,7 +138,7 @@ with gr.Blocks(css=css) as demo:
139
  gr.Examples(
140
  examples=examples,
141
  fn=predict,
142
- inputs=[prompt, ip_adapter_image, ip_adapter_scale],
143
  outputs=[result, seed],
144
  cache_examples="lazy"
145
  )
 
42
  return image, seed
43
 
44
  examples = [
45
+ ["high quality", "example1.png", 1.0, 1152, 896],
46
+ ["A capybara", "king-min.png", 0.7, 1152, 896],
 
 
47
  ]
48
 
49
  css="""
 
71
  max_lines=1,
72
  placeholder="Enter your prompt",
73
  container=False,
74
+ info='For image variation, leave empty or try a prompt like: "high quality".'
75
  )
76
  run_button = gr.Button("Run", scale=0)
77
 
 
138
  gr.Examples(
139
  examples=examples,
140
  fn=predict,
141
+ inputs=[prompt, ip_adapter_image, ip_adapter_scale, width, height],
142
  outputs=[result, seed],
143
  cache_examples="lazy"
144
  )