Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import face_recognition
|
|
| 3 |
import cv2
|
| 4 |
import joblib
|
| 5 |
import gradio as gr
|
| 6 |
-
|
| 7 |
encodings = joblib.load(os.path.join('.', 'saved_encodings'))
|
| 8 |
names = joblib.load(os.path.join('.', 'saved_names'))
|
| 9 |
|
|
@@ -20,7 +20,10 @@ def FaceRec(img):
|
|
| 20 |
return img
|
| 21 |
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
interface = gr.Interface(FaceRec, gr.inputs.Image(shape=(200,200)), "image")
|
| 25 |
|
| 26 |
interface.launch(debug = True, inline = False)
|
|
|
|
| 3 |
import cv2
|
| 4 |
import joblib
|
| 5 |
import gradio as gr
|
| 6 |
+
"""
|
| 7 |
encodings = joblib.load(os.path.join('.', 'saved_encodings'))
|
| 8 |
names = joblib.load(os.path.join('.', 'saved_names'))
|
| 9 |
|
|
|
|
| 20 |
return img
|
| 21 |
|
| 22 |
|
| 23 |
+
"""
|
| 24 |
+
def FaceRec(img):
|
| 25 |
+
return img
|
| 26 |
+
|
| 27 |
interface = gr.Interface(FaceRec, gr.inputs.Image(shape=(200,200)), "image")
|
| 28 |
|
| 29 |
interface.launch(debug = True, inline = False)
|