Spaces:
Running
Running
| ο»Ώ# 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 | |
| } | |