Update app.py
This commit is contained in:
7
app.py
7
app.py
@@ -12,6 +12,7 @@ from tab_batch import render_batch_processor
|
|||||||
from tab_timeline import render_timeline_tab
|
from tab_timeline import render_timeline_tab
|
||||||
from tab_timeline_wip import render_timeline_wip
|
from tab_timeline_wip import render_timeline_wip
|
||||||
from tab_comfy import render_comfy_monitor
|
from tab_comfy import render_comfy_monitor
|
||||||
|
from tab_raw import render_raw_editor # <--- NEW IMPORT
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# 1. PAGE CONFIGURATION
|
# 1. PAGE CONFIGURATION
|
||||||
@@ -174,12 +175,13 @@ if selected_file_name:
|
|||||||
st.title(f"Editing: {selected_file_name}")
|
st.title(f"Editing: {selected_file_name}")
|
||||||
|
|
||||||
# --- CONTROLLED NAVIGATION (REPLACES ST.TABS) ---
|
# --- CONTROLLED NAVIGATION (REPLACES ST.TABS) ---
|
||||||
# Using radio buttons allows us to change 'active_tab_name' programmatically above.
|
# Added "Raw Editor" to the list
|
||||||
tabs_list = [
|
tabs_list = [
|
||||||
"📝 Single Editor",
|
"📝 Single Editor",
|
||||||
"🚀 Batch Processor",
|
"🚀 Batch Processor",
|
||||||
"🕒 Timeline",
|
"🕒 Timeline",
|
||||||
"🧪 Interactive Timeline",
|
"🧪 Interactive Timeline",
|
||||||
|
"💻 Raw Editor",
|
||||||
"🔌 Comfy Monitor"
|
"🔌 Comfy Monitor"
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -210,5 +212,8 @@ if selected_file_name:
|
|||||||
elif current_tab == "🧪 Interactive Timeline":
|
elif current_tab == "🧪 Interactive Timeline":
|
||||||
render_timeline_wip(data, file_path)
|
render_timeline_wip(data, file_path)
|
||||||
|
|
||||||
|
elif current_tab == "💻 Raw Editor":
|
||||||
|
render_raw_editor(data, file_path)
|
||||||
|
|
||||||
elif current_tab == "🔌 Comfy Monitor":
|
elif current_tab == "🔌 Comfy Monitor":
|
||||||
render_comfy_monitor()
|
render_comfy_monitor()
|
||||||
Reference in New Issue
Block a user