Spaces:
Build error
Build error
ZeroGPU
Browse files- app.py +0 -10
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -14,16 +14,6 @@ import time
|
|
| 14 |
import shutil
|
| 15 |
import tarfile
|
| 16 |
import tensorflow as tf
|
| 17 |
-
from spaces import GPU
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
cuda_available = tf.config.list_physical_devices('GPU')
|
| 21 |
-
print("π Dispositivos disponibles:", cuda_available)
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
# π Mostrar dispositivos disponibles
|
| 26 |
-
print("π Dispositivos disponibles:", tf.config.list_physical_devices())
|
| 27 |
|
| 28 |
# π Limpiar almacenamiento temporal si existe
|
| 29 |
def clean_temp_dirs():
|
|
|
|
| 14 |
import shutil
|
| 15 |
import tarfile
|
| 16 |
import tensorflow as tf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# π Limpiar almacenamiento temporal si existe
|
| 19 |
def clean_temp_dirs():
|
requirements.txt
CHANGED
|
@@ -9,3 +9,4 @@ git+https://github.com/serengil/deepface.git
|
|
| 9 |
# Fixes para RetinaFace
|
| 10 |
tensorflow==2.12.0
|
| 11 |
tf-keras
|
|
|
|
|
|
| 9 |
# Fixes para RetinaFace
|
| 10 |
tensorflow==2.12.0
|
| 11 |
tf-keras
|
| 12 |
+
spaces
|