Spaces:
Running
Running
justin2341
commited on
Update demo.py
Browse files
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)
|