Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ import requests
|
|
8 |
|
9 |
|
10 |
def face_recognition_on_file(file1, file2):
|
|
|
|
|
11 |
url = f"{backend_url}/face_recognition"
|
12 |
try:
|
13 |
files = {'file1': open(file1, 'rb'), 'file2': open(file2, 'rb')}
|
@@ -28,6 +30,8 @@ def face_recognition_on_file(file1, file2):
|
|
28 |
|
29 |
|
30 |
def liveness_detection_on_file(file):
|
|
|
|
|
31 |
url = f"{backend_url}/check_liveness"
|
32 |
try:
|
33 |
files = {'file': open(file, 'rb')}
|
|
|
8 |
|
9 |
|
10 |
def face_recognition_on_file(file1, file2):
|
11 |
+
|
12 |
+
backend_url = os.getenv('BACKEND_URL')
|
13 |
url = f"{backend_url}/face_recognition"
|
14 |
try:
|
15 |
files = {'file1': open(file1, 'rb'), 'file2': open(file2, 'rb')}
|
|
|
30 |
|
31 |
|
32 |
def liveness_detection_on_file(file):
|
33 |
+
|
34 |
+
backend_url = os.getenv('BACKEND_URL')
|
35 |
url = f"{backend_url}/check_liveness"
|
36 |
try:
|
37 |
files = {'file': open(file, 'rb')}
|