Enigma / scripts /push_space.sh
IshwaM's picture
Upload folder using huggingface_hub
b0b8355 verified
Raw
History Blame Contribute Delete
349 Bytes
#!/usr/bin/env bash
# Push ToolMind to Hugging Face Spaces (excludes venv + env files with secrets).
# Do NOT copy .env into the repo: the Hub rejects commits containing HF tokens in files.
set -euo pipefail
cd "$(dirname "$0")/.."
REPO_ID="${1:-IshwaM/Enigma}"
source myvenv/bin/activate
exec openenv push --repo-id "$REPO_ID" --exclude .gitignore