cancer_classify_extract-api / download_model.sh
user1729's picture
Rename download_models.sh to download_model.sh
41dc905 unverified
raw
history blame
523 Bytes
#!/bin/bash
#view url: https://drive.google.com/file/d/1aR6PUjDi8fFBp0_pxe1pCv9S4EBptC5W/view?usp=sharing
FILE_ID="1aR6PUjDi8fFBp0_pxe1pCv9S4EBptC5W"
FILE_NAME="models-cancer-api.zip"
echo "Downloading model from Google Drive..."
curl -L -o "$FILE_NAME" "https://docs.google.com/uc?export=download&id=${FILE_ID}"
# Check download success
if [ ! -f "$FILE_NAME" ]; then
echo "Download failed!"
exit 1
fi
# Unzip
echo "Unzipping $FILE_NAME..."
unzip "$FILE_NAME"
# Optional: Clean up
# rm "$FILE_NAME"
echo "Done."