Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,8 @@ def preprocess_video(path: str, target_fps: int = 12,
|
|
| 51 |
# ββ main generate ββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 52 |
def generate(input_image, input_video, gender):
|
| 53 |
|
|
|
|
|
|
|
| 54 |
if (gender=="all"): gender = None
|
| 55 |
|
| 56 |
try:
|
|
@@ -90,9 +92,14 @@ demo = gr.Interface(
|
|
| 90 |
fn=generate,
|
| 91 |
title="Deep Fake Video",
|
| 92 |
description="""
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
-
Swaps the source image face onto the target video. Videos get downsampled to 800 pixels, 4 sec, and 12 fps to cut down render time (~5 minutes). Please β€οΈ this Space.
|
| 96 |
""",
|
| 97 |
inputs=[
|
| 98 |
gr.Image(type="filepath", label="Source Image"),
|
|
|
|
| 51 |
# ββ main generate ββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 52 |
def generate(input_image, input_video, gender):
|
| 53 |
|
| 54 |
+
gr.Warning('Skip the line, generate 1-5 minute HD face swap videos at <a href="https://www.face-swap.co/" target="_blank" style="color:#007bff; text-decoration:none;">face-swap.co</a>')
|
| 55 |
+
|
| 56 |
if (gender=="all"): gender = None
|
| 57 |
|
| 58 |
try:
|
|
|
|
| 92 |
fn=generate,
|
| 93 |
title="Deep Fake Video",
|
| 94 |
description="""
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
### [face-swap.co](https://www.face-swap.co/)
|
| 98 |
+
***Skip the line, generate 1-5 minute HD videos starting at $3.00***
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
|
| 102 |
+
Swaps the source image face onto the target video. Videos get downsampled to 800 pixels, 4 sec, and 12 fps to cut down render time (~5 minutes). Please β€οΈ this Space.
|
| 103 |
""",
|
| 104 |
inputs=[
|
| 105 |
gr.Image(type="filepath", label="Source Image"),
|