Zhu-FaceOnLive commited on
Commit
e24b42a
Β·
verified Β·
1 Parent(s): e0da6da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def search_face(file):
27
 
28
  try:
29
  if r.text.startswith('AC='):
30
- status_code = int(text[3:6])
31
  if status_code == 301:
32
  gr.Info("Too many faces in the photo.")
33
  elif status_code == 302:
 
27
 
28
  try:
29
  if r.text.startswith('AC='):
30
+ status_code = int(r.text[3:6])
31
  if status_code == 301:
32
  gr.Info("Too many faces in the photo.")
33
  elif status_code == 302: