init
This commit is contained in:
14
download-model.sh
Executable file
14
download-model.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
mkdir -p app/model
|
||||
cd app/model
|
||||
|
||||
# You can choose other sizes too: tiny.en, base.en, etc.
|
||||
MODEL_NAME="ggml-base.en.bin"
|
||||
MODEL_URL="https://huggingface.co/ggerganov/whisper.cpp/resolve/main/$MODEL_NAME"
|
||||
|
||||
if [ ! -f "$MODEL_NAME" ]; then
|
||||
echo "Downloading $MODEL_NAME..."
|
||||
curl -L -o $MODEL_NAME $MODEL_URL
|
||||
else
|
||||
echo "$MODEL_NAME already exists."
|
||||
fi
|
||||
Reference in New Issue
Block a user