File size: 860 Bytes
8be8b4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Test the health endpoint to check API key status
Write-Host "Testing API after fixes..." -ForegroundColor Yellow

try {
    $healthResponse = Invoke-RestMethod -Uri "https://bravedims-ai-avatar-chat.hf.space/health" -Method GET -TimeoutSec 30
    Write-Host "✅ Health Check Response:" -ForegroundColor Green
    $healthResponse | ConvertTo-Json -Depth 3
    
    # Check if ElevenLabs is properly configured
    if ($healthResponse.elevenlabs_api_configured -eq $true) {
        Write-Host "`n✅ ElevenLabs API is configured!" -ForegroundColor Green
    } else {
        Write-Host "`n❌ ElevenLabs API key still not configured" -ForegroundColor Red
        Write-Host "👉 You need to add ELEVENLABS_API_KEY to your HF Space secrets" -ForegroundColor Yellow
    }
} catch {
    Write-Host "❌ Error: $($_.Exception.Message)" -ForegroundColor Red
}