#!/usr/bin/env python3 """ Quick diagnostic for ID Agents deployment issues """ import requests def quick_diagnostic(): """Quick check of the deployment status""" print("šŸ” QUICK DEPLOYMENT DIAGNOSTIC") print("=" * 50) try: response = requests.get( "https://huggingface.co/spaces/John-jero/IDAgentsFreshTest", timeout=10 ) print(f"Status: {response.status_code}") print(f"Size: {len(response.text)} bytes") # Show first 500 characters to see what's actually loading print(f"\nFirst 500 characters of response:") print("-" * 30) print(response.text[:500]) print("-" * 30) # Check for specific error indicators text = response.text.lower() if response.status_code == 401: print("\nšŸ” Status 401: Authentication required") print("This might indicate:") print("• App is starting but hitting auth page") print("• Still building/loading") print("• Configuration issue") if "error" in text: print("āŒ Error keywords found in response") if "building" in text or "preparing" in text: print("šŸ”„ Build/preparation in progress") if "gradio" in text: print("šŸ“± Gradio framework detected") except Exception as e: print(f"āŒ Request failed: {e}") print(f"\nšŸ’” RECOMMENDATION:") print("Visit the URL manually to see the actual interface:") print("https://huggingface.co/spaces/John-jero/IDAgentsFreshTest") print("\nLook for:") print("• Is the agent builder interface visible?") print("• Any error messages on screen?") print("• Does it show the landing/builder/chat tabs?") if __name__ == "__main__": quick_diagnostic()