From 8afc7914a81191af4b098a2f7687fa4ebf8998ec Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 13 Oct 2023 09:57:35 +0200 Subject: [PATCH] Code cleanup --- facefusion/uis/components/face_analyser.py | 4 ++-- facefusion/uis/typing.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/facefusion/uis/components/face_analyser.py b/facefusion/uis/components/face_analyser.py index bb533214..54cb0d6b 100644 --- a/facefusion/uis/components/face_analyser.py +++ b/facefusion/uis/components/face_analyser.py @@ -24,12 +24,12 @@ def render() -> None: ) FACE_ANALYSER_AGE_DROPDOWN = gradio.Dropdown( label = wording.get('face_analyser_age_dropdown_label'), - choices = ['none'] + facefusion.choices.face_analyser_ages, + choices = [ 'none' ] + facefusion.choices.face_analyser_ages, value = facefusion.globals.face_analyser_age or 'none' ) FACE_ANALYSER_GENDER_DROPDOWN = gradio.Dropdown( label = wording.get('face_analyser_gender_dropdown_label'), - choices = ['none'] + facefusion.choices.face_analyser_genders, + choices = [ 'none' ] + facefusion.choices.face_analyser_genders, value = facefusion.globals.face_analyser_gender or 'none' ) register_ui_component('face_analyser_direction_dropdown', FACE_ANALYSER_DIRECTION_DROPDOWN) diff --git a/facefusion/uis/typing.py b/facefusion/uis/typing.py index e7e800c6..54232eb2 100644 --- a/facefusion/uis/typing.py +++ b/facefusion/uis/typing.py @@ -23,7 +23,6 @@ ComponentName = Literal\ 'output_path_textbox', 'benchmark_runs_checkbox_group', 'benchmark_cycles_slider', - 'player_url_textbox_label', 'webcam_mode_radio', 'webcam_resolution_dropdown', 'webcam_fps_slider'