Skip to content

fix(linux): correct sed syntax for tensor patch #5

fix(linux): correct sed syntax for tensor patch

fix(linux): correct sed syntax for tensor patch #5

name: Test Model Inference (Linux)
on:
push:
branches: [ linux-fixes ]
jobs:
test-inference:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y wget ffmpeg
- name: Download AppImage v0.1.2
run: |
wget https://github.com/AnshSinglaDev/rendercaption/releases/download/v0.1.2/RenderCaption_0.1.2_amd64.AppImage
chmod +x RenderCaption_0.1.2_amd64.AppImage
./RenderCaption_0.1.2_amd64.AppImage --appimage-extract
- name: Generate Test Audio
run: |
# 2 seconds of silence, 16kHz mono
ffmpeg -f lavfi -i anullsrc=r=16000:cl=mono -t 2 -c:a pcm_s16le test_audio.wav
- name: Download Hindi Model
run: |
# The model is public now, or the user can provide a secret if needed
# We use standard wget without hardcoding the token for security!
wget "https://huggingface.co/Singla0009/Hinglish-Conformer-CTC-GGUF/resolve/main/hinglish-conformer-ctc.f32.gguf?download=true" -O indicconformer-hindi.f32.gguf
- name: Run Inference
run: |
# Extract parakeet-cli path
CLI_PATH="./squashfs-root/usr/lib/RenderCaption/bin/parakeet-cli-x86_64-unknown-linux-gnu"
# If the binary doesn't exist by that name, just find it
if [ ! -f "$CLI_PATH" ]; then
CLI_PATH=$(find ./squashfs-root -name "parakeet-cli*" -type f -executable | head -n 1)
fi
echo "Found CLI at: $CLI_PATH"
chmod +x $CLI_PATH
echo "Running transcription test..."
$CLI_PATH transcribe --model indicconformer-hindi.f32.gguf --input test_audio.wav --decoder ctc --lang hi
echo "Transcription completed successfully!"