dc086989 commited on
Commit
f09357c
1 Parent(s): ef3ca9e

change API details

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/id_check"
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/bank_credit_check"
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/mrz_barcode_check"
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)