兼容docker和整合包下FAQ的加载逻辑
This commit is contained in:
@@ -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)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user