Spaces:
Runtime error
Runtime error
change API details
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
from PIL import Image
|
4 |
|
5 |
def check_id(frame):
|
6 |
-
url = "https://api.miniai.live/api/
|
7 |
files = {'image': open(frame, 'rb')}
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
@@ -82,7 +82,7 @@ def check_id(frame):
|
|
82 |
|
83 |
|
84 |
def check_bank(frame):
|
85 |
-
url = "https://api.miniai.live/api/
|
86 |
files = {'image': open(frame, 'rb')}
|
87 |
|
88 |
r = requests.post(url=url, files=files)
|
@@ -134,7 +134,7 @@ def check_bank(frame):
|
|
134 |
return [html, images]
|
135 |
|
136 |
def check_mrz(frame):
|
137 |
-
url = "https://api.miniai.live/api/
|
138 |
files = {'image': open(frame, 'rb')}
|
139 |
|
140 |
r = requests.post(url=url, files=files)
|
|
|
3 |
from PIL import Image
|
4 |
|
5 |
def check_id(frame):
|
6 |
+
url = "https://api.miniai.live/api/check_id"
|
7 |
files = {'image': open(frame, 'rb')}
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
|
|
82 |
|
83 |
|
84 |
def check_bank(frame):
|
85 |
+
url = "https://api.miniai.live/api/check_credit"
|
86 |
files = {'image': open(frame, 'rb')}
|
87 |
|
88 |
r = requests.post(url=url, files=files)
|
|
|
134 |
return [html, images]
|
135 |
|
136 |
def check_mrz(frame):
|
137 |
+
url = "https://api.miniai.live/api/check_mrz"
|
138 |
files = {'image': open(frame, 'rb')}
|
139 |
|
140 |
r = requests.post(url=url, files=files)
|