justin2341 commited on
Commit
284da74
·
verified ·
1 Parent(s): a983494

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +1 -1
demo.py CHANGED
@@ -8,7 +8,7 @@ def idcard_recognition(frame1, frame2):
8
  url = "http://127.0.0.1:8080/idcard_recognition_multi_page"
9
  if frame2 is None:
10
  files = {'file1': open(frame1, 'rb')}
11
- else
12
  files = {'file1': open(frame1, 'rb'), 'file2': open(frame2, 'rb')}
13
 
14
  r = requests.post(url=url, files=files)
 
8
  url = "http://127.0.0.1:8080/idcard_recognition_multi_page"
9
  if frame2 is None:
10
  files = {'file1': open(frame1, 'rb')}
11
+ else:
12
  files = {'file1': open(frame1, 'rb'), 'file2': open(frame2, 'rb')}
13
 
14
  r = requests.post(url=url, files=files)