feat: Add comprehensive timeline editor with frame editing and regeneration capabilities
This commit is contained in:
@@ -32,6 +32,7 @@ from web.state.session import init_session_state, init_i18n, get_pixelle_video
|
||||
from web.components.header import render_header
|
||||
from web.components.settings import render_advanced_settings
|
||||
from web.components.faq import render_faq_sidebar
|
||||
from web.i18n import tr
|
||||
|
||||
# Page config
|
||||
st.set_page_config(
|
||||
@@ -57,8 +58,9 @@ def main():
|
||||
# Initialize Pixelle-Video
|
||||
pixelle_video = get_pixelle_video()
|
||||
|
||||
# Render system configuration (LLM + ComfyUI)
|
||||
render_advanced_settings()
|
||||
# Render advanced settings in the sidebar
|
||||
with st.sidebar:
|
||||
render_advanced_settings()
|
||||
|
||||
# ========================================================================
|
||||
# Pipeline Selection & Delegation
|
||||
@@ -69,19 +71,26 @@ def main():
|
||||
pipelines = get_all_pipeline_uis()
|
||||
|
||||
# Use Tabs for pipeline selection
|
||||
# Note: st.tabs returns a list of containers, one for each tab
|
||||
tab_labels = [f"{p.icon} {p.display_name}" for p in pipelines]
|
||||
tab_labels = [f"{p.icon} {p.display_name}" for p in pipelines] + [tr("section.character_memory")]
|
||||
tabs = st.tabs(tab_labels)
|
||||
|
||||
# Render each pipeline in its corresponding tab
|
||||
from web.components.character_memory import render_active_characters_badge, render_character_memory
|
||||
for i, pipeline in enumerate(pipelines):
|
||||
with tabs[i]:
|
||||
# Show active characters status
|
||||
render_active_characters_badge()
|
||||
|
||||
# Show description if available
|
||||
if pipeline.description:
|
||||
st.caption(pipeline.description)
|
||||
|
||||
# Delegate rendering
|
||||
pipeline.render(pixelle_video)
|
||||
|
||||
# Render Character Memory tab
|
||||
with tabs[len(pipelines)]:
|
||||
render_character_memory()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user