31 lines
777 B
Python
31 lines
777 B
Python
# app.py
|
|
import streamlit as st
|
|
from views.label_views import video_filter_sidebar, video_list_view
|
|
from playlists import playlist_page
|
|
|
|
# ==========================
|
|
# 🧭 Configuration
|
|
# ==========================
|
|
st.set_page_config(page_title="Dance Video Manager", layout="wide")
|
|
st.sidebar.title("💃 Menu principal")
|
|
|
|
page = st.sidebar.radio(
|
|
"Navigation",
|
|
["Vidéos", "Playlists"],
|
|
key="nav_main"
|
|
)
|
|
|
|
# ==========================
|
|
# 🎬 PAGE : VIDÉOS
|
|
# ==========================
|
|
if page == "Vidéos":
|
|
st.title("🎬 Gestion et annotation des vidéos")
|
|
filters = video_filter_sidebar()
|
|
video_list_view(filters)
|
|
|
|
# ==========================
|
|
# 🎵 PAGE : PLAYLISTS
|
|
# ==========================
|
|
elif page == "Playlists":
|
|
playlist_page.main()
|