weepakistan commited on
Commit
37458f7
1 Parent(s): f3e7cad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -66,18 +66,28 @@ def swap_face(source_file, target_file, doFaceEnhancer):
66
 
67
  html_section_1 = "<div><h1>Welcome to the Face Swap App</h1></div>"
68
  html_section_2 = "<div><p>Upload your source and target images to swap faces. Optionally, use the face enhancer feature.</p></div>"
69
- html_section_3 = "<div><p>After processing, the swapped image will be displayed below.</p></div>"
 
 
 
 
 
 
 
 
 
 
70
 
71
  app = gr.Blocks()
72
 
73
  with app:
74
  gr.HTML(html_section_1)
75
  gr.HTML(html_section_2)
 
76
  gr.Interface(
77
  fn=swap_face,
78
  inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="face_enhancer?", info="do face enhancer?")],
79
  outputs="image"
80
  )
81
- gr.HTML(html_section_3)
82
 
83
  app.launch()
 
66
 
67
  html_section_1 = "<div><h1>Welcome to the Face Swap App</h1></div>"
68
  html_section_2 = "<div><p>Upload your source and target images to swap faces. Optionally, use the face enhancer feature.</p></div>"
69
+ html_section_3 = """<div>
70
+ <a href="https://ziverr.xyz/monica" target="_blank" style="display: inline-block;">
71
+ <img decoding="async" alt="banner" src="https://ziverr.xyz/wp-content/uploads/2024/06/PASSIVE-3.gif">
72
+ </a>
73
+ <a href="https://go.fiverr.com/visit/?bta=36184&brand=fiverrcpa&landingPage=https%253A%252F%252Fwww.fiverr.com%252Fcategories%252Fprogramming-tech%252Fai-coding%252Fai-applications%253Fsource%253Dcategory_tree" target="_blank" style="display: inline-block;">
74
+ <img fetchpriority="high" decoding="async" width="468" height="120" src="https://ziverr.xyz/wp-content/uploads/2024/06/PASSIVE-1.gif" class="attachment-large size-large wp-image-1266" alt="">
75
+ </a>
76
+ <a href="https://beta.publishers.adsterra.com/referral/UNXJYTziBP" target="_blank" style="display: inline-block;">
77
+ <img decoding="async" alt="banner" src="https://landings-cdn.adsterratech.com/referralBanners/gif/468x120_adsterra_reff.gif">
78
+ </a>
79
+ </div>"""
80
 
81
  app = gr.Blocks()
82
 
83
  with app:
84
  gr.HTML(html_section_1)
85
  gr.HTML(html_section_2)
86
+ gr.HTML(html_section_3)
87
  gr.Interface(
88
  fn=swap_face,
89
  inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="face_enhancer?", info="do face enhancer?")],
90
  outputs="image"
91
  )
 
92
 
93
  app.launch()