imseldrith commited on
Commit
38b8c39
1 Parent(s): cc7b013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import gradio
3
  import subprocess as sp
@@ -7,7 +8,28 @@ import time
7
  import shutil
8
 
9
  os.makedirs("./output", exist_ok=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
 
11
  def run(*args):
12
  source, target, unique_id, frame_processor_checkbox, face_swapper_model_dropdown, face_enhancer_model_dropdown, frame_enhancer_model_dropdown, face_debugger_items_checkbox, face_analyser_direction_dropdown, face_analyser_age_dropdown, face_analyser_gender_dropdown, face_mask_type_checkbox, *video_args = args
13
  if not os.path.exists(source):
@@ -213,7 +235,7 @@ def get_theme() -> gradio.Theme:
213
 
214
  with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui:
215
  with gr.Row():
216
- gr.HTML('<center><a href="https://codegenius.me">DeepFakeAI 2.0.1</a></center>')
217
 
218
  with gr.Row():
219
  with gr.Column(scale=3):
@@ -312,4 +334,4 @@ with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui
312
  )
313
  clear_video_button.click(fn=clear_output, inputs=unique_id)
314
 
315
- ui.launch(debug=True)
 
1
+
2
  import gradio as gr
3
  import gradio
4
  import subprocess as sp
 
8
  import shutil
9
 
10
  os.makedirs("./output", exist_ok=True)
11
+ htmlcb= """
12
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
13
+ <center><a href="https://codegenius.me">DeepFakeAI 2.0.1</a></center>
14
+ <div class="social-icons" style="padding:30px; background-color:#00506b; text-align:center;">
15
+ <a href="https://www.facebook.com/octaeldrith" title="facebook" style="color:#fff; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
16
+ <i class="fa fa-facebook-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition:all 200ms ease-in; -webkit-transform:scale(1); -ms-transition:all 200ms ease-in; -ms-transform:scale(1); -moz-transition:all 200ms ease-in; -moz-transform:scale(1); transition:all 200ms ease-in; transform:scale(1);"></i>
17
+ </a>
18
+ <a href="https://twitter.com/ims_eldrith" title="twitter" style="color:#fff; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
19
+ <i class="fa fa-twitter-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition:all 200ms ease-in; -webkit-transform:scale(1); -ms-transition:all 200ms ease-in; -ms-transform:scale(1); -moz-transition:all 200ms ease-in; -moz-transform:scale(1); transition:all 200ms ease-in; transform:scale(1);"></i>
20
+ </a>
21
+ <a href="https://instagram.com/ims_eldrith" title="instagram" style="color:#fff; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
22
+ <i class="fa fa-instagram" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition:all 200ms ease-in; -webkit-transform:scale(1); -ms-transition:all 200ms ease-in; -ms-transform:scale(1); -moz-transition:all 200ms ease-in; -moz-transform:scale(1); transition:all 200ms ease-in; transform:scale(1);"></i>
23
+ </a>
24
+ <a href="https://linkedin.com/in/ashiq-hussain" title="linkedin" style="color:#fff; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
25
+ <i class="fa fa-linkedin-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition:all 200ms ease-in; -webkit-transform:scale(1); -ms-transition:all 200ms ease-in; -ms-transform:scale(1); -moz-transition:all 200ms ease-in; -moz-transform:scale(1); transition:all 200ms ease-in; transform:scale(1);"></i>
26
+ </a>
27
+ <a href="https://www.pinterest.com/ims_eldrith" title="pinterest" style="color:#fff; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
28
+ <i class="fa fa-pinterest-p" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition:all 200ms ease-in; -webkit-transform:scale(1); -ms-transition:all 200ms ease-in; -ms-transform:scale(1); -moz-transition:all 200ms ease-in; -moz-transform:scale(1); transition:all 200ms ease-in; transform:scale(1);"></i>
29
+ </a>
30
+ </div>
31
 
32
+ """
33
  def run(*args):
34
  source, target, unique_id, frame_processor_checkbox, face_swapper_model_dropdown, face_enhancer_model_dropdown, frame_enhancer_model_dropdown, face_debugger_items_checkbox, face_analyser_direction_dropdown, face_analyser_age_dropdown, face_analyser_gender_dropdown, face_mask_type_checkbox, *video_args = args
35
  if not os.path.exists(source):
 
235
 
236
  with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui:
237
  with gr.Row():
238
+ gr.HTML(htmlcb)
239
 
240
  with gr.Row():
241
  with gr.Column(scale=3):
 
334
  )
335
  clear_video_button.click(fn=clear_output, inputs=unique_id)
336
 
337
+ ui.launch(debug=True)