Spaces:
Runtime error
Runtime error
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081 Download frontend/src/services/facialService.ts from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 997 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/facialService.ts
- Command line
-
hf download hf://spaces/Talosware/talos-access/frontend/src/services/facialService.ts
-
curl -L -o facialService.ts https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/facialService.ts
997 Bytes
| import api from './api'; | |
| export interface FacialEnrollResponse { | |
| id: number; | |
| user_id: number; | |
| encoding_length: number; | |
| message: string; | |
| } | |
| export interface FacialRecognizeResponse { | |
| success: boolean; | |
| user_id: number | null; | |
| name: string | null; | |
| lastname: string | null; | |
| card_id: string | null; | |
| confidence: number | null; | |
| message: string; | |
| attendance_id: number | null; | |
| } | |
| export async function enrollFace(userId: number, image: string): Promise<FacialEnrollResponse> { | |
| const { data } = await api.post('/facial/enroll', { user_id: userId, image }); | |
| return data; | |
| } | |
| export async function recognizeFace(image: string, late_note?: string): Promise<FacialRecognizeResponse> { | |
| const { data } = await api.post('/facial/recognize', { image, late_note }); | |
| return data; | |
| } | |
| export async function facialCheckout(image: string, late_note?: string): Promise<FacialRecognizeResponse> { | |
| const { data } = await api.post('/facial/checkout', { image, late_note }); | |
| return data; | |
| } | |