chukwurah commited on
Commit
c51b87c
·
1 Parent(s): c4f1a34
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -24,12 +24,10 @@ def swap_face(source_file, target_files, doFaceEnhancer):
24
  source_image = Image.fromarray(source_file)
25
  source_image.save(source_path)
26
 
27
- for idx, target_file in enumerate(target_files):
28
- target_path = f"target_{uuid.uuid4()}.jpg"
29
- target_image = Image.fromarray(target_file)
30
- target_image.save(target_path)
31
-
32
- print(f"Processing image {idx + 1}")
33
  print("source_path: ", source_path)
34
  print("target_path: ", target_path)
35
 
 
24
  source_image = Image.fromarray(source_file)
25
  source_image.save(source_path)
26
 
27
+ for target_file in target_files:
28
+ target_path = target_file.name
29
+
30
+ print(f"Processing image: {target_path}")
 
 
31
  print("source_path: ", source_path)
32
  print("target_path: ", target_path)
33