aheedsajid commited on
Commit
94ef02a
1 Parent(s): e99ed63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -35
app.py CHANGED
@@ -11,52 +11,30 @@ def generate_and_swap_image(prompt, source_image):
11
  swapped_image = image_swapping_client.predict(source_image, generated_image, True, api_name="/predict")
12
  return swapped_image
13
 
14
- # HTML code for the ad (replace with your actual ad code snippet)
15
  ad_code = """
16
  <div style="text-align: center;">
17
- <iframe src="YOUR_AD_CODE_URL" width="300" height="250"></iframe>
18
  </div>
19
  """
20
 
21
  # Gradio interface
22
- iface = gr.Interface(
23
- fn=generate_and_swap_image,
24
- inputs=[
25
- gr.Textbox(label="Enter your prompt (English)"),
26
- gr.Image(label="Source Image", type="filepath"),
27
- ],
28
- outputs=gr.Image(label="Swapped Image"),
29
- title="AI Image with Any Face",
30
- description="""
31
- Please donate something so I can get a GPU server. As low as $1 also accepted<br>
32
- Generate free AI images with your face or any face.<br>
33
- Contact me to bypass NSFW for more creativity and freedom😉<br>
34
- <b>Donate something so I can increase the GPU power/queue</b><br>
35
- [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
36
- Contact me for bulk processing and more AI software at +92-332-4399819<br>
37
- Please support me in making better AI tools as I am a solo developer<br>
38
- [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
39
- <b>Do not duplicate this space without permission.</b>
40
- """
41
- )
42
-
43
- # Adding the ad section
44
  iface = gr.Blocks()
45
 
46
  with iface:
47
- gr.Markdown("# AI Image with Any Face")
48
  gr.Markdown("""
49
- Please donate something so I can get a GPU server. As low as $1 also accepted<br>
50
- Generate free AI images with your face or any face.<br>
51
- Contact me to bypass NSFW for more creativity and freedom😉<br>
52
- <b>Donate something so I can increase the GPU power/queue</b><br>
53
- [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
54
- Contact me for bulk processing and more AI software at +92-332-4399819<br>
55
- Please support me in making better AI tools as I am a solo developer<br>
56
- [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
57
- <b>Do not duplicate this space without permission.</b>
 
58
  """)
59
-
60
  gr.HTML(ad_code)
61
 
62
  gr.Interface(
 
11
  swapped_image = image_swapping_client.predict(source_image, generated_image, True, api_name="/predict")
12
  return swapped_image
13
 
14
+ # HTML code for the ad banner
15
  ad_code = """
16
  <div style="text-align: center;">
17
+ <a href=""><img alt="banner" src="https://landings-cdn.adsterratech.com/referralBanners/gif/468x120_adsterra_reff.gif" /></a>
18
  </div>
19
  """
20
 
21
  # Gradio interface
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  iface = gr.Blocks()
23
 
24
  with iface:
 
25
  gr.Markdown("""
26
+ # AI Image with Any Face
27
+ Please donate something so I can get a GPU server. As low as $1 also accepted<br>
28
+ Generate free AI images with your face or any face.<br>
29
+ Contact me to bypass NSFW for more creativity and freedom😉<br>
30
+ <b>Donate something so I can increase the GPU power/queue</b><br>
31
+ [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
32
+ Contact me for bulk processing and more AI software at +92-332-4399819<br>
33
+ Please support me in making better AI tools as I am a solo developer<br>
34
+ [Click here to Donate](https://nowpayments.io/donation/aheed)<br>
35
+ <b>Do not duplicate this space without permission.</b>
36
  """)
37
+
38
  gr.HTML(ad_code)
39
 
40
  gr.Interface(