Fix SSL certificate issue when downloading Essentia models
Use curl -k flag to bypass SSL verification for essentia.upf.edu Add file size check to ensure models are downloaded correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -24,12 +24,14 @@ download_model() {
|
||||
echo "✓ $model_file already exists, skipping..."
|
||||
else
|
||||
echo "⬇️ Downloading $model_file..."
|
||||
curl -L -o "$output_path" "$url"
|
||||
# Use -k flag to ignore SSL certificate issues with essentia.upf.edu
|
||||
curl -k -L -o "$output_path" "$url"
|
||||
|
||||
if [ -f "$output_path" ]; then
|
||||
echo "✓ Downloaded $model_file"
|
||||
if [ -f "$output_path" ] && [ -s "$output_path" ]; then
|
||||
echo "✓ Downloaded $model_file ($(du -h "$output_path" | cut -f1))"
|
||||
else
|
||||
echo "✗ Failed to download $model_file"
|
||||
rm -f "$output_path" # Remove empty/failed file
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user