Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 ==
|
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"]
|