Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,10 @@ from PIL import Image
|
|
| 19 |
def swap_face(source_file, target_file, doFaceEnhancer):
|
| 20 |
|
| 21 |
source_path = "input.jpg"
|
| 22 |
-
target_path = "target.jpg"
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
source_image = Image.fromarray(source_file)
|
| 25 |
source_image.save(source_path)
|
|
|
|
| 19 |
def swap_face(source_file, target_file, doFaceEnhancer):
|
| 20 |
|
| 21 |
source_path = "input.jpg"
|
| 22 |
+
target_path = "./image/target.jpg"
|
| 23 |
+
|
| 24 |
+
target_file.save(target_path)
|
| 25 |
+
print("target save")
|
| 26 |
|
| 27 |
source_image = Image.fromarray(source_file)
|
| 28 |
source_image.save(source_path)
|