Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def swap_faces(target_files, male_file, female_file, enhancer_name="NONE"):
|
|
127 |
# Save the output image to a temporary file
|
128 |
with tempfile.NamedTemporaryFile(suffix=ext, delete=False) as temp_file:
|
129 |
output_path = temp_file.name
|
130 |
-
cv2.imwrite(output_path, out_frame[:, :, ::-1]) # Convert BGR to RGB before saving
|
131 |
output_files.append(output_path)
|
132 |
|
133 |
print(f"✔ Hoàn tất tất cả trong {time.time() - start_time:.2f}s")
|
|
|
127 |
# Save the output image to a temporary file
|
128 |
with tempfile.NamedTemporaryFile(suffix=ext, delete=False) as temp_file:
|
129 |
output_path = temp_file.name
|
130 |
+
#cv2.imwrite(output_path, out_frame[:, :, ::-1]) # Convert BGR to RGB before saving
|
131 |
output_files.append(output_path)
|
132 |
|
133 |
print(f"✔ Hoàn tất tất cả trong {time.time() - start_time:.2f}s")
|