voiceforge-universal / backend /debug_health.py
creator-o1
Initial commit: Complete VoiceForge Enterprise Speech AI Platform
d00203b
import requests
import time
URL = "http://127.0.0.1:8000/health"
def test_health():
print(f"Connecting to {URL}...")
start = time.time()
try:
r = requests.get(URL)
print(f"Status: {r.status_code}")
total_time = time.time() - start
print(f"Total time: {total_time:.4f}s")
print(r.json())
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
test_health()