Spaces:
Paused
Paused
| # 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 | |
| } | |