fffiloni commited on
Commit
570dcf1
1 Parent(s): bf3b73a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -455,22 +455,20 @@ with gr.Blocks() as demo:
455
  use_subject_ref = gr.Checkbox(label="Use Subject Image as Reference", value=False)
456
  submit_btn = gr.Button("Submit")
457
 
 
 
 
458
  gr.Examples(
459
  examples = [
460
  ["./data/cyberpunk.png","cyberpunk art style","a car",None,False ],
461
  ["./data/melting_gold.png", "melting golden 3D rendering style", "a dog", "./data/dog.jpg", True]
462
  ],
463
- inputs=[style_reference_image, style_description, subject_prompt, subject_reference, use_subject_ref]
 
 
 
464
  )
465
- with gr.Column():
466
- output_image = gr.Image(label="Output Image")
467
- '''
468
- submit_btn.click(
469
- fn = infer,
470
- inputs = [style_reference_image, style_description, subject_prompt],
471
- outputs = [output_image]
472
- )
473
- '''
474
  submit_btn.click(
475
  fn = run,
476
  inputs = [style_reference_image, style_description, subject_prompt, subject_reference, use_subject_ref],
 
455
  use_subject_ref = gr.Checkbox(label="Use Subject Image as Reference", value=False)
456
  submit_btn = gr.Button("Submit")
457
 
458
+
459
+ with gr.Column():
460
+ output_image = gr.Image(label="Output Image")
461
  gr.Examples(
462
  examples = [
463
  ["./data/cyberpunk.png","cyberpunk art style","a car",None,False ],
464
  ["./data/melting_gold.png", "melting golden 3D rendering style", "a dog", "./data/dog.jpg", True]
465
  ],
466
+ inputs=[style_reference_image, style_description, subject_prompt, subject_reference, use_subject_ref],
467
+ outputs=[output_image],
468
+ cache_examples=True
469
+
470
  )
471
+
 
 
 
 
 
 
 
 
472
  submit_btn.click(
473
  fn = run,
474
  inputs = [style_reference_image, style_description, subject_prompt, subject_reference, use_subject_ref],