From abcf7204dd31b6e36afce92e4aff2fbb2afe75d8 Mon Sep 17 00:00:00 2001 From: pablo8itall <61849957+pablo8itall@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:43:09 +0100 Subject: [PATCH] fix: minor argument check (#77) one argument was checked twice. --- src/gradio_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gradio_pipeline.py b/src/gradio_pipeline.py index c717897..531aec2 100644 --- a/src/gradio_pipeline.py +++ b/src/gradio_pipeline.py @@ -69,7 +69,7 @@ class GradioPipeline(LivePortraitPipeline): def execute_image(self, input_eye_ratio: float, input_lip_ratio: float): """ for single image retargeting """ - if input_eye_ratio is None or input_eye_ratio is None: + if input_eye_ratio is None or input_lip_ratio is None: raise gr.Error("Invalid ratio input 💥!", duration=5) elif self.f_s_user is None: if self.start_prepare: