Spaces:
Runtime error
Runtime error
Update
Browse files- gradio/demo.py +1 -1
gradio/demo.py
CHANGED
@@ -4,7 +4,7 @@ import json
|
|
4 |
|
5 |
def compare_face(frame1, frame2):
|
6 |
url = "http://127.0.0.1:8000/api/compare_face"
|
7 |
-
files = {'
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
10 |
print("==================", r.json())
|
|
|
4 |
|
5 |
def compare_face(frame1, frame2):
|
6 |
url = "http://127.0.0.1:8000/api/compare_face"
|
7 |
+
files = {'image1': open(frame1, 'rb'), 'image2': open(frame2, 'rb')}
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
10 |
print("==================", r.json())
|