Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,15 @@ from PIL import Image
|
|
| 16 |
def swap_face(source_file, target_file, doFaceEnhancer):
|
| 17 |
|
| 18 |
source_path = "input.jpg"
|
| 19 |
-
target_path = "target.jpg"
|
| 20 |
|
| 21 |
source_image = Image.fromarray(source_file)
|
| 22 |
source_image.save(source_path)
|
| 23 |
target_image = Image.fromarray(target_file)
|
| 24 |
target_image.save(target_path)
|
| 25 |
|
|
|
|
|
|
|
| 26 |
print("source_path: ", source_path)
|
| 27 |
print("target_path: ", target_path)
|
| 28 |
|
|
|
|
| 16 |
def swap_face(source_file, target_file, doFaceEnhancer):
|
| 17 |
|
| 18 |
source_path = "input.jpg"
|
| 19 |
+
target_path = roop.globals.target_path+"target.jpg"
|
| 20 |
|
| 21 |
source_image = Image.fromarray(source_file)
|
| 22 |
source_image.save(source_path)
|
| 23 |
target_image = Image.fromarray(target_file)
|
| 24 |
target_image.save(target_path)
|
| 25 |
|
| 26 |
+
target_path = "target.jpg"
|
| 27 |
+
|
| 28 |
print("source_path: ", source_path)
|
| 29 |
print("target_path: ", target_path)
|
| 30 |
|