From 729c407c302d7de57924c1a07350f7f875443544 Mon Sep 17 00:00:00 2001 From: harry Date: Wed, 17 Apr 2024 17:24:00 +0800 Subject: [PATCH] fixed: ValidationError: 1 validation error for VideoParams video_subject Field required --- webui/Main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webui/Main.py b/webui/Main.py index 1a327f7..5b8716a 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -223,7 +223,7 @@ left_panel = panel[0] middle_panel = panel[1] right_panel = panel[2] -params = VideoParams() +params = VideoParams(video_subject="") with left_panel: with st.container(border=True): @@ -299,7 +299,8 @@ with middle_panel: index=0) with st.container(border=True): st.write(tr("Audio Settings")) - voices = voice.get_all_azure_voices(filter_locals=["zh-CN", "zh-HK", "zh-TW", "de-DE", "en-US", "fr-FR", "vi-VN"]) + voices = voice.get_all_azure_voices( + filter_locals=["zh-CN", "zh-HK", "zh-TW", "de-DE", "en-US", "fr-FR", "vi-VN"]) friendly_names = { v: v. replace("Female", tr("Female")).