Update app.py
Browse files
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 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
examples
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
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,
|