Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ from terran.io import open_image
|
|
| 2 |
from terran.vis import display_image, vis_faces
|
| 3 |
from terran.face import face_detection
|
| 4 |
|
| 5 |
-
image =
|
|
|
|
| 6 |
detections = face_detection(image)
|
| 7 |
display_image(vis_faces(image, detections))
|
|
|
|
| 2 |
from terran.vis import display_image, vis_faces
|
| 3 |
from terran.face import face_detection
|
| 4 |
|
| 5 |
+
image = st.file_uploader('Upload an image')
|
| 6 |
+
#image = open_image('examples/readme/many-faces-raw.jpg')
|
| 7 |
detections = face_detection(image)
|
| 8 |
display_image(vis_faces(image, detections))
|