dianacasti's picture
Add HF Space app with adapters (no venv)
fb55abc
Raw
History Blame Contribute Delete
2 kB
# Deployment Script for Hugging Face Spaces
# Run this script to deploy your personality chatbot
Write-Host "🚀 Deploying to Hugging Face Spaces..." -ForegroundColor Cyan
Write-Host ""
# Step 1: Initialize git
Write-Host "Step 1: Initializing git repository..." -ForegroundColor Yellow
git init
# Step 2: Install Git LFS
Write-Host "`nStep 2: Setting up Git LFS for large files..." -ForegroundColor Yellow
git lfs install
# Step 3: Track large files
Write-Host "`nStep 3: Tracking model files with Git LFS..." -ForegroundColor Yellow
git lfs track "*.safetensors"
git lfs track "*.bin"
git lfs track "*.json"
# Step 4: Add files
Write-Host "`nStep 4: Adding all files to git..." -ForegroundColor Yellow
git add .gitattributes
git add .
# Step 5: Commit
Write-Host "`nStep 5: Creating commit..." -ForegroundColor Yellow
git commit -m "Initial commit: Multi-personality chatbot"
# Step 6: Add remote
Write-Host "`nStep 6: Adding Hugging Face Space as remote..." -ForegroundColor Yellow
git remote add space https://huggingface.co/spaces/dianacasti/personality-chatbot
# Step 7: Push
Write-Host "`nStep 7: Pushing to Hugging Face Space..." -ForegroundColor Yellow
Write-Host "⚠️ You will be prompted for credentials:" -ForegroundColor Cyan
Write-Host " Username: dianacasti" -ForegroundColor White
Write-Host " Password: [Your Hugging Face Token - NOT your account password]" -ForegroundColor White
Write-Host " Get token from: https://huggingface.co/settings/tokens" -ForegroundColor White
Write-Host ""
Write-Host "⏱️ This may take 15-30 minutes to upload model files..." -ForegroundColor Cyan
Write-Host ""
git push --force space main
Write-Host "`n✅ Deployment complete!" -ForegroundColor Green
Write-Host "🌐 Your app will be live at:" -ForegroundColor Cyan
Write-Host " https://dianacasti-personality-chatbot.hf.space" -ForegroundColor White
Write-Host ""
Write-Host "Note: The Space may take 5-10 minutes to build after the push completes." -ForegroundColor Yellow