Spaces:
Build error
Build error
Commit
·
4d48359
1
Parent(s):
1f91d26
Mejorar visibilidad y guiar al usuario a la función de reconocimiento en tiempo real
Browse files- streamlit_app.py +6 -2
streamlit_app.py
CHANGED
|
@@ -76,7 +76,11 @@ def main():
|
|
| 76 |
"Choose the app mode",
|
| 77 |
["About", "Face Detection", "Feature Detection", "Comparison Mode", "Face Recognition", "Diagnóstico"]
|
| 78 |
)
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
# Function to load DNN models with caching and auto-download
|
| 81 |
@st.cache_resource
|
| 82 |
def load_face_model():
|
|
@@ -1744,7 +1748,7 @@ def main():
|
|
| 1744 |
print_database_info()
|
| 1745 |
|
| 1746 |
# Crear pestañas para las diferentes funcionalidades
|
| 1747 |
-
tab1, tab2, tab3 = st.tabs(["Register Face", "Image Recognition", "
|
| 1748 |
|
| 1749 |
with tab1:
|
| 1750 |
st.header("Register New Face")
|
|
|
|
| 76 |
"Choose the app mode",
|
| 77 |
["About", "Face Detection", "Feature Detection", "Comparison Mode", "Face Recognition", "Diagnóstico"]
|
| 78 |
)
|
| 79 |
+
|
| 80 |
+
# Añadir mensaje destacado para guiar al usuario a la detección en tiempo real
|
| 81 |
+
if app_mode != "Face Recognition":
|
| 82 |
+
st.sidebar.warning("⚠️ Para usar la detección facial en tiempo real, selecciona 'Face Recognition' y luego la pestaña 'Real-time Recognition'")
|
| 83 |
+
|
| 84 |
# Function to load DNN models with caching and auto-download
|
| 85 |
@st.cache_resource
|
| 86 |
def load_face_model():
|
|
|
|
| 1748 |
print_database_info()
|
| 1749 |
|
| 1750 |
# Crear pestañas para las diferentes funcionalidades
|
| 1751 |
+
tab1, tab2, tab3 = st.tabs(["Register Face", "Image Recognition", "🔴 REAL-TIME Recognition"])
|
| 1752 |
|
| 1753 |
with tab1:
|
| 1754 |
st.header("Register New Face")
|