Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,15 @@ article_text = """
|
|
28 |
</div>
|
29 |
"""
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
def swap_face(source_file, target_file,doFaceEnhancer):
|
33 |
|
@@ -81,6 +90,6 @@ def swap_face(source_file, target_file,doFaceEnhancer):
|
|
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()
|
|
|
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">
|
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 |
|
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", description = description_text, article = article_text
|
94 |
)
|
95 |
app.launch()
|