Spaces:
Runtime error
Runtime error
Sandy2636
commited on
Commit
·
e98f5dd
1
Parent(s):
d419eb6
Add application file
Browse files- app.py +3 -0
- requirements.txt +1 -2
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import base64
|
3 |
import requests
|
|
|
1 |
+
import os
|
2 |
+
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Suppress TensorFlow INFO and WARNING messages
|
3 |
+
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
|
4 |
import gradio as gr
|
5 |
import base64
|
6 |
import requests
|
requirements.txt
CHANGED
@@ -2,7 +2,6 @@ gradio>=4.0.0
|
|
2 |
requests>=2.25.0
|
3 |
Pillow>=9.0.0
|
4 |
deepface>=0.0.79
|
5 |
-
tensorflow-cpu
|
6 |
opencv-python-headless>=4.5.0
|
7 |
-
# retina-face Pypi package for the detector if deepface doesn't pull it correctly
|
8 |
retina-face>=0.0.12
|
|
|
2 |
requests>=2.25.0
|
3 |
Pillow>=9.0.0
|
4 |
deepface>=0.0.79
|
5 |
+
tensorflow-cpu~=2.13.0 # Explicitly CPU, pinned to a stable series (e.g., 2.13.x)
|
6 |
opencv-python-headless>=4.5.0
|
|
|
7 |
retina-face>=0.0.12
|