victorisgeek commited on
Commit
20b79d0
·
verified ·
1 Parent(s): cedc6a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -42,10 +42,10 @@ def main():
42
  args = parse_args()
43
 
44
  with gr.Blocks(title='FaceClone') as web_ui:
45
- gr.Markdown('# 🇲🇲 FaceClone Deepfake Swap Face and Pose')
46
- with gr.Tab('### 🧩 FaceSwapper'):
47
- gr.Markdown('### 🧸FaceClone:power by Gradio')
48
- with gr.Tab('📥Image'):
49
  with gr.Row():
50
  with gr.Column():
51
  gr.Markdown('🖇️The source image to be swapped')
@@ -53,11 +53,11 @@ def main():
53
  with gr.Row():
54
  with gr.Column():
55
  gr.Markdown(
56
- '🎭target face included in source image')
57
  dst_face_image = gr.Image(type='filepath')
58
  with gr.Column():
59
  gr.Markdown(
60
- '🧑‍🦳source face to replace target face')
61
  src_face_image = gr.Image(type='filepath')
62
 
63
  with gr.Column():
@@ -67,17 +67,17 @@ def main():
67
  info="🧿Whether use face enhance model.")
68
  with gr.Row():
69
  use_sr = gr.Checkbox(
70
- label="🛠️super resolution",
71
- info="⚒️Whether use image resolution model.")
72
  scale = gr.Number(
73
  value=1, label='📐image super resolution scale')
74
  with gr.Row():
75
  face_sim_thre = gr.Number(
76
  value=0.6,
77
- label='🧲face similarity threshold',
78
  minimum=0.0,
79
  maximum=1.0)
80
- convert_button = gr.Button('🔍Swap')
81
  convert_button.click(fn=swap_face,
82
  inputs=[
83
  image_input, dst_face_image,
@@ -106,7 +106,7 @@ def main():
106
  output_video = gr.Video()
107
  use_enhancer = gr.Checkbox(
108
  label="📸 Face Enhance",
109
- info="📷Whether use face enhance model.")
110
  with gr.Row():
111
  use_sr = gr.Checkbox(
112
  label="🔋 Super resolution",
@@ -119,7 +119,7 @@ def main():
119
  label='💌face similarity threshold',
120
  minimum=0.0,
121
  maximum=1.0)
122
- convert_button = gr.Button('🎯 Swap')
123
  convert_button.click(fn=swap_face,
124
  inputs=[
125
  video_input, dst_face_image,
@@ -129,14 +129,14 @@ def main():
129
  outputs=[output_video],
130
  api_name='💽 video swap 💽')
131
 
132
- with gr.Tab('### 🪩 PoseSwapper'):
133
- gr.Markdown('### 🧸FaceClone:Deepfake power by Gradio')
134
  with gr.Tab('📷 Image'):
135
  with gr.Row():
136
  with gr.Column():
137
  gr.Markdown('🧑‍🦳The source image to be swapped')
138
  image_input = gr.Image(type='filepath')
139
- gr.Markdown('🗳️The target image with pose')
140
  target = gr.Image(type='filepath')
141
 
142
  with gr.Column():
@@ -150,7 +150,7 @@ def main():
150
  info="⌛Whether use image resolution model.")
151
  scale = gr.Number(
152
  value=1, label='📸 slSuper resolution scale')
153
- convert_button = gr.Button('🎯 Swap')
154
  convert_button.click(fn=swap_pose,
155
  inputs=[
156
  image_input, target,
 
42
  args = parse_args()
43
 
44
  with gr.Blocks(title='FaceClone') as web_ui:
45
+ gr.Markdown('# 🇲🇲 FaceClone Deepfake Swap Face and Pose')
46
+ with gr.Tab('## 🧩 FaceSwapper'):
47
+ gr.Markdown('## 🧸 FaceClone:power by Gradio')
48
+ with gr.Tab('📥 Image'):
49
  with gr.Row():
50
  with gr.Column():
51
  gr.Markdown('🖇️The source image to be swapped')
 
53
  with gr.Row():
54
  with gr.Column():
55
  gr.Markdown(
56
+ '🎭 target face included in source image')
57
  dst_face_image = gr.Image(type='filepath')
58
  with gr.Column():
59
  gr.Markdown(
60
+ '🧑‍🦳 source face to replace target face')
61
  src_face_image = gr.Image(type='filepath')
62
 
63
  with gr.Column():
 
67
  info="🧿Whether use face enhance model.")
68
  with gr.Row():
69
  use_sr = gr.Checkbox(
70
+ label="🛠️ super resolution",
71
+ info="⚒️ Whether use image resolution model.")
72
  scale = gr.Number(
73
  value=1, label='📐image super resolution scale')
74
  with gr.Row():
75
  face_sim_thre = gr.Number(
76
  value=0.6,
77
+ label='🧲 face similarity threshold',
78
  minimum=0.0,
79
  maximum=1.0)
80
+ convert_button = gr.Button('# 🔍 Swap')
81
  convert_button.click(fn=swap_face,
82
  inputs=[
83
  image_input, dst_face_image,
 
106
  output_video = gr.Video()
107
  use_enhancer = gr.Checkbox(
108
  label="📸 Face Enhance",
109
+ info="📷 Whether use face enhance model.")
110
  with gr.Row():
111
  use_sr = gr.Checkbox(
112
  label="🔋 Super resolution",
 
119
  label='💌face similarity threshold',
120
  minimum=0.0,
121
  maximum=1.0)
122
+ convert_button = gr.Button('# 🎯 Swap')
123
  convert_button.click(fn=swap_face,
124
  inputs=[
125
  video_input, dst_face_image,
 
129
  outputs=[output_video],
130
  api_name='💽 video swap 💽')
131
 
132
+ with gr.Tab('## 🪩 PoseSwapper'):
133
+ gr.Markdown('## 🧸FaceClone:Deepfake power by Gradio')
134
  with gr.Tab('📷 Image'):
135
  with gr.Row():
136
  with gr.Column():
137
  gr.Markdown('🧑‍🦳The source image to be swapped')
138
  image_input = gr.Image(type='filepath')
139
+ gr.Markdown('🗳️ The target image with pose')
140
  target = gr.Image(type='filepath')
141
 
142
  with gr.Column():
 
150
  info="⌛Whether use image resolution model.")
151
  scale = gr.Number(
152
  value=1, label='📸 slSuper resolution scale')
153
+ convert_button = gr.Button('# 🎯 Swap')
154
  convert_button.click(fn=swap_pose,
155
  inputs=[
156
  image_input, target,