mr2along commited on
Commit
7dbf331
·
verified ·
1 Parent(s): c1d1c58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, f"output_{os.path.basename(target_path)}")
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