feat: Add DeepFace model weights download functionality to installation script

This commit introduces a new function in the `install.sh` script to download DeepFace model weights, enhancing the setup process for users. The function checks for the presence of DeepFace and attempts to download the ArcFace model weights, providing fallback options and user-friendly messages for manual download if automatic attempts fail. This improvement streamlines the initial configuration for facial recognition capabilities in the application.
This commit is contained in:
Tanya
2026-01-02 14:16:08 -05:00
parent 32be5c7f23
commit e624d203d5
7 changed files with 308 additions and 72 deletions
+2 -6
View File
@@ -54,14 +54,10 @@ export const photosApi = {
formData.append('files', file)
})
// Don't set Content-Type header manually - let the browser set it with boundary
const { data } = await apiClient.post<UploadResponse>(
'/api/v1/photos/import/upload',
formData,
{
headers: {
'Content-Type': 'multipart/form-data',
},
}
formData
)
return data
},