-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
61 lines (53 loc) · 1.43 KB
/
Copy pathapp.py
File metadata and controls
61 lines (53 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import streamlit as st
st.set_page_config(
page_title="SpamSense — Détecteur Intelligent",
page_icon="🌳",
layout="wide",
initial_sidebar_state="expanded"
)
# Load custom CSS
with open("assets/style.css") as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
# Sidebar navigation
with st.sidebar:
st.markdown("""
<div class="sidebar-logo">
<div class="logo-icon">🌳</div>
<div class="logo-text">SpamSense</div>
<div class="logo-sub">Apprentissage Automatique</div>
</div>
""", unsafe_allow_html=True)
st.markdown("---")
page = st.radio(
"Navigation",
options=[
"🏠 Accueil",
"🌳 Arbre de Décision",
"⚗️ Laboratoire",
"📊 Surapprentissage",
"🧪 Entraîne ton Modèle",
],
label_visibility="collapsed"
)
st.markdown("---")
st.markdown("""
<div class="sidebar-info">
<div class="info-badge">· Fondements de l'IA ·</div>
</div>
""", unsafe_allow_html=True)
# Page routing
if "🏠" in page:
from modules import home
home.show()
elif "🌳" in page:
from modules import tree_viz
tree_viz.show()
elif "⚗️" in page:
from modules import lab
lab.show()
elif "📊" in page:
from modules import overfitting
overfitting.show()
elif "🧪" in page:
from modules import train
train.show()