Luis commited on
Commit
747767c
·
1 Parent(s): 282c52f
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -26,7 +26,11 @@ def img2text(img):
26
  # print(flattened_arr)
27
 
28
  y_pred = clf.predict([flattened_arr])
29
- return str(y_pred[0])
 
 
 
 
30
 
31
 
32
  import gradio as gr
 
26
  # print(flattened_arr)
27
 
28
  y_pred = clf.predict([flattened_arr])
29
+ if y_pred[0] == 0:
30
+ return 'face'
31
+ else:
32
+ return 'non-face'
33
+
34
 
35
 
36
  import gradio as gr