diff --git a/recipes/llama-cpp/recipe.yaml b/recipes/llama-cpp/recipe.yaml index ee650d5..13ac122 100644 --- a/recipes/llama-cpp/recipe.yaml +++ b/recipes/llama-cpp/recipe.yaml @@ -41,6 +41,7 @@ outputs: source: url: https://huggingface.co/jartine/llava-v1.5-7B-GGUF/resolve/main/llava-v1.5-7b-Q4_K.gguf?download=true sha256: c91ebf0a628ceb25e374df23ad966cc1bf1514b33fecf4f0073f9619dec5b3f9 + build: noarch: generic script: diff --git a/recipes/whisper-cpp/recipe.yaml b/recipes/whisper-cpp/recipe.yaml index 300c487..814d3d9 100644 --- a/recipes/whisper-cpp/recipe.yaml +++ b/recipes/whisper-cpp/recipe.yaml @@ -7,8 +7,9 @@ source: sha256: 06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a outputs: - - package: + - package: name: whisper-cpp + requirements: build: - ${{ compiler('cxx') }} @@ -28,11 +29,17 @@ outputs: - package: name: whisper-cpp-base-en + version: 0.1.0 + source: + url: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin?download=true + sha256: a03779c86df3323075f5e796cb2ce5029f00ec8869eee3fdfb897afe36c6d002 + file_name: ggml-base.en.bin + requirements: run: - whisper-cpp + build: script: - - ./models/download-ggml-model.sh base.en - mkdir -p $PREFIX/share/whisper-cpp/models - - cp ./models/ggml-base.en.bin $PREFIX/share/whisper-cpp/models/ggml-base.en.bin \ No newline at end of file + - cp ./ggml-base.en.bin $PREFIX/share/models/whisper-cpp/ggml-base.en.bin \ No newline at end of file diff --git a/whisper/pixi.toml b/whisper/pixi.toml index 39251d2..592f218 100644 --- a/whisper/pixi.toml +++ b/whisper/pixi.toml @@ -4,9 +4,9 @@ channels = ["../output", "conda-forge"] platforms = ["osx-arm64"] [tasks] -start = "whisper-cpp-stream -m $CONDA_PREFIX/share/whisper-cpp/models/ggml-base.en.bin" +start = "whisper-cpp-stream -m $CONDA_PREFIX/share/models/whisper-cpp/ggml-base.en.bin" convert = "ffmpeg -ar 16000 -ac 1 -c:a pcm_s16le output.wav -i " -transcribe = "whisper-cpp -m $CONDA_PREFIX/share/whisper-cpp/models/ggml-base.en.bin" +transcribe = "whisper-cpp -m $CONDA_PREFIX/share/models/whisper-cpp/ggml-base.en.bin" download_example = "curl -o speech.wav https://upload.wikimedia.org/wikipedia/commons/7/75/Marshall_Plan_Speech.wav" [dependencies]