Spaces:
Runtime error
Runtime error
chukwurah
commited on
Commit
·
c51b87c
1
Parent(s):
c4f1a34
rer
Browse files
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
|
28 |
-
target_path =
|
29 |
-
|
30 |
-
|
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 |
|