Apex-X commited on
Commit
b6f4332
1 Parent(s): f842063

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def swap_face(source_file, target_file,doFaceEnhancer):
34
  roop.globals.output_path = normalize_output_path(
35
  roop.globals.source_path, roop.globals.target_path, output_path
36
  )
37
- if doFaceEnhancer == True:
38
  roop.globals.frame_processors = ["face_swapper","face_enhancer"]
39
  else:
40
  roop.globals.frame_processors = ["face_swapper"]
 
34
  roop.globals.output_path = normalize_output_path(
35
  roop.globals.source_path, roop.globals.target_path, output_path
36
  )
37
+ if doFaceEnhancer == None:
38
  roop.globals.frame_processors = ["face_swapper","face_enhancer"]
39
  else:
40
  roop.globals.frame_processors = ["face_swapper"]