Fix on vulnerability report

https://github.com/hacksider/Deep-Live-Cam/issues/1695
This commit is contained in:
Kenneth Estanislao committed 2026-03-06 23:26:48 +08:00
1 parent 6e9e7addf2
commit 0d8f3b1f82
3 files changed
+26 -7

No files matched your search

+9
View File
@@ -17,8 +17,17 @@ FRAME_PROCESSORS_INTERFACE = [
'process_video'
]
ALLOWED_PROCESSORS = {
'face_swapper',
'face_enhancer',
'face_enhancer_gpen256',
'face_enhancer_gpen512'
}
def load_frame_processor_module(frame_processor: str) -> Any:
if frame_processor not in ALLOWED_PROCESSORS:
print(f"Frame processor {frame_processor} is not allowed")
sys.exit()
try:
frame_processor_module = importlib.import_module(f'modules.processors.frame.{frame_processor}')
for method_name in FRAME_PROCESSORS_INTERFACE: