aheedsajid commited on
Commit
008f98b
1 Parent(s): 837eaa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from gradio_client import Client
3
  import os
4
  import shutil
5
 
@@ -22,8 +22,8 @@ def generate_and_swap(text_input, source_image_path):
22
 
23
 
24
  swap_result_path = client_face_swap.predict(
25
- generated_image_path,
26
- source_image_path,
27
  api_name="/predict"
28
  )
29
  print("Faces swapped successfully.")
@@ -48,6 +48,6 @@ iface = gr.Interface(
48
  ],
49
  "image",
50
  description="Generate free AI image with your or any face. Support me in making better AI codes as I am a solo developer [Click here to Donate](https://nowpayments.io/donation/aheed) Contact me for bulk processing and better AI software +92-332-4399819",
51
- title="Face to AI Image"
52
  )
53
  iface.launch()
 
1
  import gradio as gr
2
+ from gradio_client import Client, file
3
  import os
4
  import shutil
5
 
 
22
 
23
 
24
  swap_result_path = client_face_swap.predict(
25
+ file(generated_image_path),
26
+ file(source_image_path),
27
  api_name="/predict"
28
  )
29
  print("Faces swapped successfully.")
 
48
  ],
49
  "image",
50
  description="Generate free AI image with your or any face. Support me in making better AI codes as I am a solo developer [Click here to Donate](https://nowpayments.io/donation/aheed) Contact me for bulk processing and better AI software +92-332-4399819",
51
+ title="AI Image with Any Face"
52
  )
53
  iface.launch()