Update app.py

This commit is contained in:
2026-01-18 19:04:01 +01:00
parent ac6a0baa68
commit cb4dc1458f

8
app.py
View File

@@ -32,7 +32,7 @@ with st.sidebar:
st.rerun() st.rerun()
# --- TABS --- # --- TABS ---
t1, t2, t3, t4 = st.tabs(["🕒 1. Discovery", "🆔 2. ID Review", "♻️ 3. Unused", "📂 4. Category Sorter"]) t1, t2, t3, t4, t5 = st.tabs(["🕒 Discovery", "🆔 Review", "♻️ Unused", "📂 Categorizer", "🖼️ Gallery Sorter"])
with t1: with t1:
path_t1 = st.text_input("Discovery Target", value=p_data.get("tab1_target", "/storage"), key="t1_input") path_t1 = st.text_input("Discovery Target", value=p_data.get("tab1_target", "/storage"), key="t1_input")
@@ -62,3 +62,9 @@ with t4:
SorterEngine.save_tab_paths(selected_profile, t4_s=path_t4_s, t4_o=path_t4_o, mode=mode) SorterEngine.save_tab_paths(selected_profile, t4_s=path_t4_s, t4_o=path_t4_o, mode=mode)
tab_category_sorter.render(path_t4_s, path_t4_o, quality, mode) tab_category_sorter.render(path_t4_s, path_t4_o, quality, mode)
with t5:
path_t5 = st.text_input("Gallery Source (PNG)", value=p_data.get("tab5_source", "/storage"), key="t5_input")
if path_t5 != p_data.get("tab5_source"):
SorterEngine.save_tab_paths(selected_profile, t5_s=path_t5) # Ensure engine supports t5_s
tab_gallery_sorter.render(path_t5, p_data.get("tab4_out"), quality)