Spaces:
Running
Running
Deployment Guide for Hugging Face Spaces
Quick Deployment Steps
Option 1: Using Hugging Face Web Interface (Recommended)
Create a new Space:
- Go to https://huggingface.co/new-space
- Name:
parakeet-progressive-streaming(or your preferred name) - License:
mit - SDK:
static - Click "Create Space"
Upload files:
- Upload the entire
dist/folder contents to your Space - Upload
README.mdto the root (this will be displayed on the Space page)
The file structure should look like:
your-space/ βββ README.md βββ index.html βββ assets/ βββ *.js βββ *.css βββ *.wasm- Upload the entire
Done! Your Space will be live at
https://huggingface.co/spaces/YOUR_USERNAME/SPACE_NAME
Option 2: Using Git (Advanced)
Initialize git repository (if not already done):
cd parakeet-web-demo git init git add dist/ README.md git commit -m "Initial commit: Parakeet progressive streaming demo"Add Hugging Face remote:
git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/SPACE_NAMEPush to Hugging Face:
git push hf main
What Gets Deployed
The dist/ folder contains:
index.html- Main HTML entry pointassets/*.js- JavaScript bundles (React app, worker, libraries)assets/*.css- Stylesheetsassets/*.wasm- ONNX Runtime WebAssembly files
Total size: ~47MB (mostly WASM files for ONNX Runtime)
Post-Deployment
After deployment, your Space will:
- Load immediately (static site)
- Download the Parakeet model (~2.5GB) on first use
- Cache the model in the browser's IndexedDB for subsequent visits
Updating the Space
To update after making changes:
Rebuild:
npm run buildUpload new dist/ contents via the web interface, or:
git add dist/ git commit -m "Update: description of changes" git push hf main
Testing Locally Before Deployment
npm run preview
This will serve the production build locally at http://localhost:4173
Troubleshooting
Space shows blank page
- Check browser console for errors
- Verify all files in
dist/were uploaded - Ensure
index.htmlis in the root directory
Model fails to load
- Check that the Space has WebGPU enabled (Chrome 113+, Edge 113+)
- Verify CORS headers are set correctly (Hugging Face handles this automatically)
- Check browser console for specific error messages
Performance is slow
- This is expected - see README.md for performance notes
- Ensure WebGPU is available (check console logs)
- Try on a different browser (Chrome/Edge recommended)
Browser Requirements
Recommend users use:
- Chrome 113+ or Edge 113+ for full WebGPU support
- Modern desktop/laptop (mobile may be very slow)
- Good internet connection for initial model download
Privacy & Security
The demo:
- β Runs entirely client-side (no server processing)
- β No data sent to any server
- β Model cached locally in browser
- β Microphone access required (browser prompt)