fix: minor argument check (#77)

one argument was checked twice.
This commit is contained in:
pablo8itall 2024-07-10 09:43:09 +01:00 committed by GitHub
parent de88675006
commit abcf7204dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: