Turing311 commited on
Commit
f53c455
1 Parent(s): 9df37f3
Files changed (1) hide show
  1. 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 = {'file1': open(frame1, 'rb'), 'file2': open(frame2, 'rb')}
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())