fix(linux): inject C++ tensor patch #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.3 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| # Use gh to download since the release is currently a "Draft" and hidden from public wget | |
| gh release download v0.1.3 --pattern "*.AppImage" --repo AnshSinglaDev/rendercaption || true | |
| chmod +x RenderCaption_0.1.3_amd64.AppImage | |
| ./RenderCaption_0.1.3_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!" |