Update app.py
Browse files
app.py
CHANGED
|
@@ -173,7 +173,7 @@ def swap_faces(target_files, male_file, female_file, enhancer_name="NONE"):
|
|
| 173 |
#cv2.imwrite(output_path, out_frame) # Convert BGR to RGB before saving
|
| 174 |
#output_files.append(output_path)
|
| 175 |
# Lưu ảnh đầu ra vào thư mục tạm
|
| 176 |
-
output_path = os.path.join(temp_dir,
|
| 177 |
cv2.imwrite(output_path, out_frame) # Lưu ảnh vào thư mục tạm
|
| 178 |
output_files.append(output_path)
|
| 179 |
|
|
|
|
| 173 |
#cv2.imwrite(output_path, out_frame) # Convert BGR to RGB before saving
|
| 174 |
#output_files.append(output_path)
|
| 175 |
# Lưu ảnh đầu ra vào thư mục tạm
|
| 176 |
+
output_path = os.path.join(temp_dir,temp_file.name )
|
| 177 |
cv2.imwrite(output_path, out_frame) # Lưu ảnh vào thư mục tạm
|
| 178 |
output_files.append(output_path)
|
| 179 |
|