Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,31 +63,14 @@ 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.</p></div>"
|
69 |
-
html_section_3 = """<div>
|
70 |
-
<a href="https://ziverr.xyz/monica" target="_blank" style="display: inline-block;">
|
71 |
-
<img decoding="async" alt="banner" src="https://ziverr.xyz/wp-content/uploads/2024/06/PASSIVE-3.gif">
|
72 |
-
</a>
|
73 |
-
<a href="https://go.fiverr.com/visit/?bta=36184&brand=fiverrcpa&landingPage=https%253A%252F%252Fwww.fiverr.com%252Fcategories%252Fprogramming-tech%252Fai-coding%252Fai-applications%253Fsource%253Dcategory_tree" target="_blank" style="display: inline-block;">
|
74 |
-
<img fetchpriority="high" decoding="async" width="468" height="120" src="https://ziverr.xyz/wp-content/uploads/2024/06/PASSIVE-1.gif" class="attachment-large size-large wp-image-1266" alt="">
|
75 |
-
</a>
|
76 |
-
<a href="https://beta.publishers.adsterra.com/referral/UNXJYTziBP" target="_blank" style="display: inline-block;">
|
77 |
-
<img decoding="async" alt="banner" src="https://landings-cdn.adsterratech.com/referralBanners/gif/468x120_adsterra_reff.gif">
|
78 |
-
</a>
|
79 |
-
</div>"""
|
80 |
-
|
81 |
app = gr.Blocks()
|
82 |
|
83 |
with app:
|
84 |
-
gr.HTML(html_section_1)
|
85 |
-
gr.HTML(html_section_2)
|
86 |
-
gr.HTML(html_section_3)
|
87 |
gr.Interface(
|
88 |
fn=swap_face,
|
|
|
89 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="face_enhancer?", info="do face enhancer?")],
|
90 |
outputs="image"
|
91 |
)
|
92 |
|
93 |
-
app.launch()
|
|
|
63 |
start()
|
64 |
return output_path
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
app = gr.Blocks()
|
67 |
|
68 |
with app:
|
|
|
|
|
|
|
69 |
gr.Interface(
|
70 |
fn=swap_face,
|
71 |
+
theme="Nymbo/Alyx_Theme",
|
72 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="face_enhancer?", info="do face enhancer?")],
|
73 |
outputs="image"
|
74 |
)
|
75 |
|
76 |
+
app.launch()
|