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