支持模板列表预览

This commit is contained in:
puke
2025-11-07 20:37:43 +08:00
parent 852cc37a38
commit 8f842d6dfd
5 changed files with 13 additions and 0 deletions

View File

@@ -660,6 +660,15 @@ def main():
st.markdown(f"**{tr('help.how')}**")
st.markdown(tr("template.how"))
# Template preview link (based on language)
current_lang = get_language()
if current_lang == "zh_CN":
template_docs_url = "https://aidc-ai.github.io/Pixelle-Video/zh/user-guide/templates/#_3"
else:
template_docs_url = "https://aidc-ai.github.io/Pixelle-Video/user-guide/templates/#built-in-template-preview"
st.markdown(f"🔗 [{tr('template.preview_link')}]({template_docs_url})")
# Import template utilities
from pixelle_video.utils.template_util import get_templates_grouped_by_size