animrods commited on
Commit
709b448
·
verified ·
1 Parent(s): 7593258

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -72,8 +72,8 @@ def remove_back_to_files():
72
  return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
73
 
74
  examples = [
75
- ["high quality", "example1.png", 1.0, "", 1000, False, False, 1152, 896],
76
- ["capybara", "example2.png", 0.7, "", 1000, False, False, 1152, 896],
77
  ]
78
 
79
  css="""
@@ -201,13 +201,13 @@ with gr.Blocks(css=css) as demo:
201
  remove_and_reupload.click(fn=remove_back_to_files, outputs=[uploaded_files, clear_button, files])
202
 
203
 
204
- # gr.Examples(
205
- # examples=examples,
206
- # fn=predict,
207
- # inputs=[prompt, ip_adapter_images, ip_adapter_scale, negative_prompt, seed, randomize_seed, center_crop, width, height],
208
- # outputs=[result, seed],
209
- # cache_examples="lazy"
210
- # )
211
 
212
  gr.on(
213
  triggers=[run_button.click, prompt.submit],
 
72
  return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
73
 
74
  examples = [
75
+ ["high quality", "example1.png", 1.0, "", 1000, False, False, 1152, 896, 5.0, 30, "Regular"],
76
+ ["capybara", "example2.png", 0.7, "", 1000, False, False, 1152, 896, 5.0, 30, "Style-Only"],
77
  ]
78
 
79
  css="""
 
201
  remove_and_reupload.click(fn=remove_back_to_files, outputs=[uploaded_files, clear_button, files])
202
 
203
 
204
+ gr.Examples(
205
+ examples=examples,
206
+ fn=predict,
207
+ inputs=[prompt, ip_adapter_images, ip_adapter_scale, negative_prompt, seed, randomize_seed, center_crop, width, height, guidance_scale, num_inference_steps, mode],
208
+ outputs=[result, seed],
209
+ cache_examples="lazy"
210
+ )
211
 
212
  gr.on(
213
  triggers=[run_button.click, prompt.submit],