Spaces:
Sleeping
Sleeping
Update gradio/app.py
Browse files- 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()
|