Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,15 +63,9 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
| 63 |
start()
|
| 64 |
return output_path
|
| 65 |
|
| 66 |
-
|
| 67 |
-
html_section_1 = "<div><h1>Welcome to the Face Swap App</h1></div>"
|
| 68 |
-
html_section_2 = '<div><p>Upload your source and target images to swap faces. Optionally, use the face enhancer feature for HD Results.</p><h2><br /><strong>For fast and bulk Swap:</strong> <a href="https://picfy.xyz/" target="_blank" rel="noopener">https://picfy.xyz/</a><br /> <strong>Support me USDT (TRC-20): TAe7hsSVWtMEYz3G5V1UiUdYPQVqm28bKx</h2></div>'
|
| 69 |
-
|
| 70 |
app = gr.Blocks()
|
| 71 |
|
| 72 |
with app:
|
| 73 |
-
gr.HTML(html_section_1)
|
| 74 |
-
gr.HTML(html_section_2)
|
| 75 |
gr.Interface(
|
| 76 |
fn=swap_face,
|
| 77 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="Apply", info="Face Enhancer")],
|
|
|
|
| 63 |
start()
|
| 64 |
return output_path
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
app = gr.Blocks()
|
| 67 |
|
| 68 |
with app:
|
|
|
|
|
|
|
| 69 |
gr.Interface(
|
| 70 |
fn=swap_face,
|
| 71 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="Apply", info="Face Enhancer")],
|