Zhu-FaceOnLive
commited on
Update app.py
Browse files
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:
|