Spaces:
Running
Running
Face Swap Pro Huggingface
#2
by
GoHugo
- opened
app.py
CHANGED
@@ -28,15 +28,6 @@ article_text = """
|
|
28 |
</div>
|
29 |
"""
|
30 |
|
31 |
-
description_text = """<div style="display:flex;column-gap:4px;">
|
32 |
-
<a href="https://huggingface.co/spaces/ovi054/face-swap-pro?duplicate=true">
|
33 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
34 |
-
</a>
|
35 |
-
<a href="https://huggingface.co/ovi054">
|
36 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
37 |
-
</a>
|
38 |
-
</div>"""
|
39 |
-
|
40 |
|
41 |
def swap_face(source_file, target_file,doFaceEnhancer):
|
42 |
|
@@ -90,6 +81,6 @@ def swap_face(source_file, target_file,doFaceEnhancer):
|
|
90 |
|
91 |
|
92 |
app = gr.Interface(
|
93 |
-
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image",
|
94 |
)
|
95 |
app.launch()
|
|
|
28 |
</div>
|
29 |
"""
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
def swap_face(source_file, target_file,doFaceEnhancer):
|
33 |
|
|
|
81 |
|
82 |
|
83 |
app = gr.Interface(
|
84 |
+
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image", article = article_text
|
85 |
)
|
86 |
app.launch()
|