IDAgentsFreshTest / simple_check.py
IDAgents Developer
Force authentication: Create hf_config.py and ensure auth always applies
cc8b97c
raw
history blame
1.72 kB
#!/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")