fffiloni commited on
Commit
9b9b72a
1 Parent(s): 1217431

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -23
app.py CHANGED
@@ -57,29 +57,27 @@ with gr.Blocks(css=css) as demo:
57
  <h2 style="text-align: center;">SDXL Auto FaceSwap</h2>
58
  """)
59
  with gr.Row():
60
-
61
- with gr.Column():
62
- portrait_in = gr.Image(label="Your face portrait", type="filepath")
63
- prompt_in = gr.Textbox(label="Prompt to desired portrait using your own face")
64
- submit_btn = gr.Button("Submit")
65
- with gr.Column():
66
- result = gr.Image(label="Result")
67
- gr.Examples(
68
- examples = [
69
- [
70
- "./examples/monalisa.png",
71
- "A beautiful brunette pilot girl, beautiful, moody lighting, best quality, full body portrait, real picture, intricate details, depth of field, in a cold snowstorm, , Fujifilm XT3, outdoors, Beautiful lighting, RAW photo, 8k uhd, film grain, unreal engine 5, ray trace, detail skin, realistic."
72
- ],
73
- [
74
- "./examples/gustave.jpeg",
75
- "close-up fantasy-inspired portrait of haute couture hauntingly handsome 19 year old Persian male fashion model looking directly into camera, warm brown eyes, roguish black hair, wearing black assassin robes and billowing black cape , background is desert at night, ethereal dreamy foggy, photoshoot by Alessio Albi , editorial Fashion Magazine photoshoot, fashion poses, . Kinfolk Magazine. Film Grain."
76
- ]
77
- ],
78
- inputs = [
79
- portrait_in,
80
- prompt_in
81
- ]
82
- )
83
 
84
  submit_btn.click(
85
  fn = infer,
 
57
  <h2 style="text-align: center;">SDXL Auto FaceSwap</h2>
58
  """)
59
  with gr.Row():
60
+ portrait_in = gr.Image(label="Your face portrait", type="filepath")
61
+ result = gr.Image(label="Result")
62
+ prompt_in = gr.Textbox(label="Prompt to desired portrait using your own face")
63
+ submit_btn = gr.Button("Submit")
64
+
65
+ gr.Examples(
66
+ examples = [
67
+ [
68
+ "./examples/monalisa.png",
69
+ "A beautiful brunette pilot girl, beautiful, moody lighting, best quality, full body portrait, real picture, intricate details, depth of field, in a cold snowstorm, , Fujifilm XT3, outdoors, Beautiful lighting, RAW photo, 8k uhd, film grain, unreal engine 5, ray trace, detail skin, realistic."
70
+ ],
71
+ [
72
+ "./examples/gustave.jpeg",
73
+ "close-up fantasy-inspired portrait of haute couture hauntingly handsome 19 year old Persian male fashion model looking directly into camera, warm brown eyes, roguish black hair, wearing black assassin robes and billowing black cape , background is desert at night, ethereal dreamy foggy, photoshoot by Alessio Albi , editorial Fashion Magazine photoshoot, fashion poses, . Kinfolk Magazine. Film Grain."
74
+ ]
75
+ ],
76
+ inputs = [
77
+ portrait_in,
78
+ prompt_in
79
+ ]
80
+ )
 
 
81
 
82
  submit_btn.click(
83
  fn = infer,