correct application of playlists rules
This commit is contained in:
@@ -3,6 +3,13 @@ import streamlit as st
|
||||
from views.label_views import video_filter_sidebar, video_list_view
|
||||
from playlists import playlist_page
|
||||
|
||||
import argparse
|
||||
|
||||
# --- Parse arguments (avant tout Streamlit UI) ---
|
||||
parser = argparse.ArgumentParser(add_help=False)
|
||||
parser.add_argument("--unlabeled", action="store_true", help="Afficher uniquement les vidéos sans labels")
|
||||
args, _ = parser.parse_known_args()
|
||||
|
||||
# ==========================
|
||||
# 🧭 Configuration
|
||||
# ==========================
|
||||
@@ -20,7 +27,7 @@ page = st.sidebar.radio(
|
||||
# ==========================
|
||||
if page == "Vidéos":
|
||||
st.title("🎬 Gestion et annotation des vidéos")
|
||||
filters = video_filter_sidebar()
|
||||
filters = video_filter_sidebar(unlabeled=args.unlabeled)
|
||||
video_list_view(filters)
|
||||
|
||||
# ==========================
|
||||
|
||||
Reference in New Issue
Block a user