| from gradio_client import Client, handle_file | |
| client = Client("MiniAiLive/FaceRecognition-LivenessDetection-Demo") | |
| result = client.predict( | |
| frame1=handle_file('https://qvnhhditkzzeudppuezf.supabase.co/storage/v1/object/public/post-images/post-images/1752289670997-kevan.jpg'), | |
| frame2=handle_file('https://qvnhhditkzzeudppuezf.supabase.co/storage/v1/object/public/post-images/post-images/1752289670997-kevan.jpg'), | |
| api_name="/face_compare" | |
| ) | |
| print(result) |