ipvikas commited on
Commit
05bdc41
Β·
1 Parent(s): 9e713fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=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=`dict`, #['text']
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 .launch()
 
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()