Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,8 +126,9 @@ def complete_pipeline(background: Image.Image, source: Image.Image):
|
|
| 126 |
|
| 127 |
# Bước 5: Face Swapping - background baldhead và overlay result
|
| 128 |
final_result = swap_face_now(
|
| 129 |
-
|
| 130 |
-
|
|
|
|
| 131 |
|
| 132 |
)
|
| 133 |
|
|
|
|
| 126 |
|
| 127 |
# Bước 5: Face Swapping - background baldhead và overlay result
|
| 128 |
final_result = swap_face_now(
|
| 129 |
+
background.convert("RGB"), # background baldhead
|
| 130 |
+
overlay_result.convert("RGB") # overlay result
|
| 131 |
+
|
| 132 |
|
| 133 |
)
|
| 134 |
|