aheedsajid commited on
Commit
17eeebc
·
verified ·
1 Parent(s): 64067fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- 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.")
 
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.")