Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ db_path='https://github.com/ipvikas/MyPhotos'
|
|
17 |
import pandas as pd
|
18 |
def get_deepface(image):
|
19 |
|
20 |
-
df = DeepFace.find(img_path=image, db_path=
|
21 |
#print(df.head())
|
22 |
return DeepFace.analyze(img_path=image)
|
23 |
|
@@ -27,7 +27,7 @@ description = "Deepface is a lightweight face recognition and facial attribute a
|
|
27 |
facial_attribute_demo = gr.Interface(
|
28 |
fn=get_deepface,
|
29 |
inputs="image",
|
30 |
-
outputs
|
31 |
title="face recognition and facial attribute analysis",
|
32 |
description=description,
|
33 |
|
@@ -35,4 +35,4 @@ facial_attribute_demo = gr.Interface(
|
|
35 |
examples=[["10Jan_1.jpeg"]],
|
36 |
cache_examples=False)
|
37 |
|
38 |
-
facial_attribute_demo
|
|
|
17 |
import pandas as pd
|
18 |
def get_deepface(image):
|
19 |
|
20 |
+
df = DeepFace.find(img_path=image, db_path='https://github.com/ipvikas/MyPhotos')
|
21 |
#print(df.head())
|
22 |
return DeepFace.analyze(img_path=image)
|
23 |
|
|
|
27 |
facial_attribute_demo = gr.Interface(
|
28 |
fn=get_deepface,
|
29 |
inputs="image",
|
30 |
+
outputs=['text']
|
31 |
title="face recognition and facial attribute analysis",
|
32 |
description=description,
|
33 |
|
|
|
35 |
examples=[["10Jan_1.jpeg"]],
|
36 |
cache_examples=False)
|
37 |
|
38 |
+
facial_attribute_demo.launch()
|