Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

fix the bug with the incorrect bgm_type parameter

harrybdf7af0a1279
diff --git a/webui/Main.py b/webui/Main.py
index c0db0b97..b168d317 100644
--- a/webui/Main.py
+++ b/webui/Main.py
@@ -501,10 +501,10 @@ with middle_panel:
format_func=lambda x: bgm_options[x][0] # 显示给用户的是标签
)
# 获取选择的背景音乐类型
- bgm_type = bgm_options[selected_index][1]
+ params.bgm_type = bgm_options[selected_index][1]
# 根据选择显示或隐藏组件
- if bgm_type == "custom":
+ if params.bgm_type == "custom":
custom_bgm_file = st.text_input(tr("Custom Background Music File"))
if custom_bgm_file and os.path.exists(custom_bgm_file):
params.bgm_file = custom_bgm_file