Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """ | |
| Simple deployment status checker | |
| """ | |
| print("π ID AGENTS DEPLOYMENT STATUS") | |
| print("=" * 50) | |
| # Check our deployment files | |
| import os | |
| current_dir = os.getcwd() | |
| print(f"Current directory: {current_dir}") | |
| # List key files | |
| key_files = ["app.py", "requirements.txt", "README.md"] | |
| for file in key_files: | |
| if os.path.exists(file): | |
| size = os.path.getsize(file) | |
| print(f"β {file}: {size:,} bytes") | |
| else: | |
| print(f"β {file}: Not found") | |
| # Check app.py content | |
| if os.path.exists("app.py"): | |
| with open("app.py", "r", encoding="utf-8") as f: | |
| content = f.read() | |
| lines = len(content.split('\n')) | |
| print(f" π app.py has {lines:,} lines") | |
| # Check for key components | |
| if "build_agent" in content: | |
| print(" π€ Agent builder functionality: β ") | |
| if "show_chat" in content: | |
| print(" π¬ Chat interface: β ") | |
| if "KnowledgeLoader" in content: | |
| print(" π§ Knowledge base: β ") | |
| print("\nπ NEXT STEPS:") | |
| print("1. Visit: https://huggingface.co/spaces/John-jero/IDAgentsFreshTest") | |
| print("2. Check if you see:") | |
| print(" β’ Agent Builder interface with tabs") | |
| print(" β’ Any error messages") | |
| print(" β’ Loading/building status") | |
| print("3. If it's still showing auth page, the app might need:") | |
| print(" β’ OPENAI_API_KEY in HF Spaces settings") | |
| print(" β’ SERPER_API_KEY in HF Spaces settings") | |
| print("\nπ‘ To add API keys to HF Spaces:") | |
| print("1. Go to your Space settings") | |
| print("2. Add secrets/environment variables:") | |
| print(" - OPENAI_API_KEY: your_openai_key") | |
| print(" - SERPER_API_KEY: your_serper_key") | |
| print("3. Restart the Space") | |