兼容docker和整合包下FAQ的加载逻辑

This commit is contained in:
puke
2025-12-10 16:45:24 +08:00
parent 4ff3c50cf3
commit 4be70516c5
3 changed files with 14 additions and 9 deletions

View File

@@ -85,12 +85,16 @@ def render_faq_sidebar():
# Display FAQ content
st.markdown(faq_content, unsafe_allow_html=True)
# Add a link to GitHub issues for more help
st.markdown(
f"💡 {tr('faq.more_help', fallback='Need more help?')} "
f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues)"
)
else:
# Show error message if FAQ cannot be loaded
st.warning(tr('faq.load_error', fallback='Failed to load FAQ content'))
# Add a link to GitHub issues for more help
st.markdown(
f"💡 {tr('faq.more_help', fallback='Need more help?')} "
f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues)"
)
# If FAQ cannot be loaded, only show the GitHub link
st.markdown(f"### 💡 {tr('faq.more_help', fallback='Need help?')}")
st.markdown(
f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues) | "
f"[Documentation](https://aidc-ai.github.io/Pixelle-Video)"
)