Spaces:
Running
Running
victorisgeek
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ with gr.Blocks(theme='finlaymacklon/boxy_violet') as demo:
|
|
65 |
with gr.Column(scale=10):
|
66 |
gr.Markdown("# 🧸Refacer")
|
67 |
with gr.Row():
|
68 |
-
video = gr.Video(label="👑Original video👑", format="📀mp4
|
69 |
-
video2 = gr.Video(label="💎Refaced video💎", interactive=False, format="📀mp4
|
70 |
|
71 |
for i in range(num_faces):
|
72 |
with gr.Tab(f"Face #{i + 1}"):
|
@@ -74,10 +74,10 @@ with gr.Blocks(theme='finlaymacklon/boxy_violet') as demo:
|
|
74 |
origin.append(gr.Image(label="🧲Face to replace🧲"))
|
75 |
destination.append(gr.Image(label="📥Destination face📥"))
|
76 |
with gr.Row():
|
77 |
-
thresholds.append(gr.Slider(label="
|
78 |
|
79 |
with gr.Row():
|
80 |
-
button = gr.Button("💽Reface
|
81 |
|
82 |
button.click(fn=run, inputs=[video] + origin + destination + thresholds, outputs=[video2])
|
83 |
|
|
|
65 |
with gr.Column(scale=10):
|
66 |
gr.Markdown("# 🧸Refacer")
|
67 |
with gr.Row():
|
68 |
+
video = gr.Video(label="👑Original video👑", format="📀mp4")
|
69 |
+
video2 = gr.Video(label="💎Refaced video💎", interactive=False, format="📀mp4")
|
70 |
|
71 |
for i in range(num_faces):
|
72 |
with gr.Tab(f"Face #{i + 1}"):
|
|
|
74 |
origin.append(gr.Image(label="🧲Face to replace🧲"))
|
75 |
destination.append(gr.Image(label="📥Destination face📥"))
|
76 |
with gr.Row():
|
77 |
+
thresholds.append(gr.Slider(label="Threshold", minimum=0.0, maximum=1.0, value=0.2))
|
78 |
|
79 |
with gr.Row():
|
80 |
+
button = gr.Button("💽Reface", variant="primary")
|
81 |
|
82 |
button.click(fn=run, inputs=[video] + origin + destination + thresholds, outputs=[video2])
|
83 |
|