Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,9 +143,6 @@ async def swap_face(
|
|
| 143 |
# Perform custom face swap
|
| 144 |
result_img = swap_faces(source_img, target_img)
|
| 145 |
|
| 146 |
-
# Optional: Apply face enhancement (e.g., using a library like GFPGAN)
|
| 147 |
-
# Skipped for simplicity
|
| 148 |
-
|
| 149 |
# Save the result
|
| 150 |
cv2.imwrite(output_path, result_img)
|
| 151 |
|
|
|
|
| 143 |
# Perform custom face swap
|
| 144 |
result_img = swap_faces(source_img, target_img)
|
| 145 |
|
|
|
|
|
|
|
|
|
|
| 146 |
# Save the result
|
| 147 |
cv2.imwrite(output_path, result_img)
|
| 148 |
|