hassan526 commited on
Commit
5144aa8
·
verified ·
1 Parent(s): f4c0484

Update gradio/app.py

Browse files
Files changed (1) hide show
  1. gradio/app.py +5 -0
gradio/app.py CHANGED
@@ -278,6 +278,11 @@ async def compare_face(image1: UploadFile = File(...), image2: UploadFile = File
278
  # For now, return a dummy result
279
  return {"match": True, "confidence": 0.94}
280
 
 
 
 
 
 
281
 
282
  if __name__ == '__main__':
283
  g_activation_result = activate_sdk()
 
278
  # For now, return a dummy result
279
  return {"match": True, "confidence": 0.94}
280
 
281
+ @app.post("/api/compare_face_base64")
282
+ async def compare_face_base64() -> Dict:
283
+ # Load image bytes, run comparison...
284
+ # For now, return a dummy result
285
+ return {"match": True, "confidence": 0.64}
286
 
287
  if __name__ == '__main__':
288
  g_activation_result = activate_sdk()