jarondon82 commited on
Commit
6f81acf
·
1 Parent(s): 03ae406

Corrección de configuración: usando app mínima y corrigiendo archivos de configuración

Browse files
Files changed (4) hide show
  1. .hugginface → .huggingface +0 -0
  2. app.py +12 -9
  3. app.yaml +1 -1
  4. streamlit_minimal.py +28 -0
.hugginface → .huggingface RENAMED
File without changes
app.py CHANGED
@@ -1,11 +1,14 @@
1
- # Simple app.py for Face Detection - compatible with TF 2.12.0
2
- import os
3
- import sys
4
  import streamlit as st
5
 
6
- # Importar la aplicación principal
7
- print("Starting Face Detection Application...")
8
- from streamlit_app import main
9
-
10
- if __name__ == "__main__":
11
- main()
 
 
 
 
 
 
1
+ # Simple app.py for Face Detection
 
 
2
  import streamlit as st
3
 
4
+ try:
5
+ # Importar la aplicación principal
6
+ print("Starting Face Detection Application...")
7
+ from streamlit_app import main
8
+
9
+ # Main entry point
10
+ if __name__ == "__main__":
11
+ main()
12
+ except Exception as e:
13
+ st.error(f"Error al iniciar la aplicación: {e}")
14
+ st.error("Por favor, revise los logs para más información.")
app.yaml CHANGED
@@ -4,6 +4,6 @@ colorFrom: blue
4
  colorTo: indigo
5
  sdk: streamlit
6
  sdk_version: 1.31.0
7
- app_file: app.py
8
  pinned: false
9
  license: mit
 
4
  colorTo: indigo
5
  sdk: streamlit
6
  sdk_version: 1.31.0
7
+ app_file: streamlit_minimal.py
8
  pinned: false
9
  license: mit
streamlit_minimal.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def main():
4
+ st.title("Face Detection App")
5
+ st.write("Esta es una versión mínima para probar la configuración.")
6
+ st.write("Si ves este mensaje, la aplicación está configurada correctamente.")
7
+
8
+ st.info("Versiones de dependencias:")
9
+ try:
10
+ import tensorflow as tf
11
+ st.success(f"TensorFlow version: {tf.__version__}")
12
+ except Exception as e:
13
+ st.error(f"Error de TensorFlow: {e}")
14
+
15
+ try:
16
+ import keras
17
+ st.success(f"Keras version: {keras.__version__}")
18
+ except Exception as e:
19
+ st.error(f"Error de Keras: {e}")
20
+
21
+ try:
22
+ import cv2
23
+ st.success(f"OpenCV version: {cv2.__version__}")
24
+ except Exception as e:
25
+ st.error(f"Error de OpenCV: {e}")
26
+
27
+ if __name__ == "__main__":
28
+ main()