File size: 2,003 Bytes
f123c00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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