aheedsajid commited on
Commit
3ca1b87
1 Parent(s): 17eeebc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,8 +22,8 @@ def generate_and_swap(text_input, source_image_path):
22
 
23
  # Second API: Face swap
24
  swap_result_path = client_face_swap.predict(
25
- file(generated_image_path), # Provide generated image path directly
26
- file(source_image_path), # Provide source image path directly
27
  api_name="/predict"
28
  )
29
  print("Faces swapped successfully.")
@@ -47,7 +47,7 @@ iface = gr.Interface(
47
  gr.Image(type="filepath", label="Upload your source image:")
48
  ],
49
  "image",
50
- description="Generate free AI image with your or any face. [Click here to Donate](https://nowpayments.io/donation/aheed)",
51
  title="Face to AI Image"
52
  )
53
  iface.launch()
 
22
 
23
  # Second API: Face swap
24
  swap_result_path = client_face_swap.predict(
25
+ generated_image_path, # Provide generated image path directly
26
+ source_image_path, # Provide source image path directly
27
  api_name="/predict"
28
  )
29
  print("Faces swapped successfully.")
 
47
  gr.Image(type="filepath", label="Upload your source image:")
48
  ],
49
  "image",
50
+ description="Generate free AI image with your or any face. [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()