#!/usr/bin/env bash # Upload this local OmniVoice snapshot to https://huggingface.co/pravinuxd/OmniVoice # Requires: hf auth login (https://huggingface.co/settings/tokens) # Size ~3.2 GB — use a stable connection; optional: pip install hf_transfer && export HF_HUB_ENABLE_HF_TRANSFER=1 set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" export PATH="${HOME}/.local/bin:${PATH}" if ! command -v hf >/dev/null 2>&1; then echo "Install the HF CLI: curl -LsSf https://hf.co/cli/install.sh | bash" >&2 exit 1 fi echo "Checking login..." if ! hf auth whoami >/dev/null 2>&1; then echo "" >&2 echo "Not logged in to Hugging Face. Do one of the following, then re-run this script:" >&2 echo "" >&2 echo " Interactive:" >&2 echo " hf auth login" >&2 echo "" >&2 echo " Or with a token from https://huggingface.co/settings/tokens (Write access):" >&2 echo " hf auth login --token YOUR_TOKEN_HERE" >&2 echo "" >&2 exit 1 fi hf auth whoami echo "Uploading ${ROOT} -> pravinuxd/OmniVoice (repo root)..." hf upload pravinuxd/OmniVoice "${ROOT}" . \ --repo-type model \ --exclude ".git/**" \ --exclude ".cache/**" \ --exclude ".env" \ --exclude ".env.*" \ --commit-message "Upload OmniVoice weights and tokenizer snapshot" echo "Done. Open: https://huggingface.co/pravinuxd/OmniVoice"