victorisgeek commited on
Commit
91ad607
·
verified ·
1 Parent(s): c4757ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="🫅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
 
 
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