Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def check_password():
|
|
| 25 |
if st.session_state.password_correct:
|
| 26 |
return True
|
| 27 |
|
| 28 |
-
st.title("
|
| 29 |
password = st.text_input("Veuillez saisir le code d'accès", type="password")
|
| 30 |
if st.button("Se connecter"):
|
| 31 |
if password == "ok": #Veritas2025
|
|
@@ -69,7 +69,7 @@ if 'extractor' not in st.session_state:
|
|
| 69 |
with st.sidebar:
|
| 70 |
st.title("PrõspectùsV-ritas")
|
| 71 |
st.markdown("---")
|
| 72 |
-
if st.button("
|
| 73 |
for f in list(INPUT_DIR.glob("*")) + list(OUTPUT_DIR.glob("*")):
|
| 74 |
os.remove(f)
|
| 75 |
st.success("Système nettoyé.")
|
|
@@ -89,7 +89,7 @@ col4.metric("Confiance IA", "98.4%")
|
|
| 89 |
st.markdown("---")
|
| 90 |
|
| 91 |
# --- NAVIGATION PAR ONGLETS (STYLE PALANTIR) ---
|
| 92 |
-
tab_ingestion, tab_intelligence = st.tabs(["
|
| 93 |
|
| 94 |
# --- TAB 1: INGESTION ---
|
| 95 |
with tab_ingestion:
|
|
@@ -126,7 +126,7 @@ with tab_intelligence:
|
|
| 126 |
selected_file = st.selectbox("Sélectionner un artefact", json_files, format_func=lambda x: x.name)
|
| 127 |
|
| 128 |
# Bouton de suppression spécifique
|
| 129 |
-
if st.button("
|
| 130 |
os.remove(selected_file)
|
| 131 |
st.rerun()
|
| 132 |
|
|
|
|
| 25 |
if st.session_state.password_correct:
|
| 26 |
return True
|
| 27 |
|
| 28 |
+
st.title("Accès Restreint - Veritas")
|
| 29 |
password = st.text_input("Veuillez saisir le code d'accès", type="password")
|
| 30 |
if st.button("Se connecter"):
|
| 31 |
if password == "ok": #Veritas2025
|
|
|
|
| 69 |
with st.sidebar:
|
| 70 |
st.title("PrõspectùsV-ritas")
|
| 71 |
st.markdown("---")
|
| 72 |
+
if st.button("PURGER TOUS LES FICHIERS"):
|
| 73 |
for f in list(INPUT_DIR.glob("*")) + list(OUTPUT_DIR.glob("*")):
|
| 74 |
os.remove(f)
|
| 75 |
st.success("Système nettoyé.")
|
|
|
|
| 89 |
st.markdown("---")
|
| 90 |
|
| 91 |
# --- NAVIGATION PAR ONGLETS (STYLE PALANTIR) ---
|
| 92 |
+
tab_ingestion, tab_intelligence = st.tabs(["INGESTION & OCR", "INTELLIGENCE & GRAPHES"])
|
| 93 |
|
| 94 |
# --- TAB 1: INGESTION ---
|
| 95 |
with tab_ingestion:
|
|
|
|
| 126 |
selected_file = st.selectbox("Sélectionner un artefact", json_files, format_func=lambda x: x.name)
|
| 127 |
|
| 128 |
# Bouton de suppression spécifique
|
| 129 |
+
if st.button("Supprimer cet artefact"):
|
| 130 |
os.remove(selected_file)
|
| 131 |
st.rerun()
|
| 132 |
|