IDAgentsFreshTest / monitor_fix.py
IDAgents Developer
Force authentication: Create hf_config.py and ensure auth always applies
cc8b97c
raw
history blame
2.4 kB
#!/usr/bin/env python3
"""
Monitor the deployment after ChatMessage fix
"""
import time
import requests
def monitor_deployment():
"""Monitor the deployment after the fix"""
print("πŸ”§ MONITORING DEPLOYMENT AFTER CHATMESSAGE FIX")
print("=" * 60)
url = "https://huggingface.co/spaces/John-jero/IDAgentsFreshTest"
for attempt in range(5):
try:
print(f"\n⏱️ Check #{attempt + 1} at {time.strftime('%H:%M:%S')}")
response = requests.get(url, timeout=15)
print(f"Status: {response.status_code}")
print(f"Size: {len(response.text):,} bytes")
# Check for success indicators
text = response.text.lower()
if response.status_code == 200:
print("βœ… Status 200: Good!")
# Look for app interface indicators
if "agent builder" in text or "gradio" in text:
print("πŸŽ‰ App interface detected!")
elif "error" in text:
print("⚠️ Error detected in response")
elif "building" in text or "preparing" in text:
print("πŸ”„ Still building...")
else:
print("πŸ“± Response received, checking content...")
elif response.status_code == 401:
print("πŸ” Status 401: Authentication page (app may be loading)")
else:
print(f"❌ Unexpected status: {response.status_code}")
# Show first 200 chars for context
print(f"Preview: {response.text[:200]}...")
if attempt < 4:
print("⏳ Waiting 30 seconds...")
time.sleep(30)
except Exception as e:
print(f"❌ Request failed: {e}")
if attempt < 4:
time.sleep(30)
print(f"\n🎯 FINAL RECOMMENDATION:")
print(f"Visit: {url}")
print("Look for:")
print("β€’ Agent Builder interface")
print("β€’ Landing/Builder/Chat tabs")
print("β€’ No import error messages")
print("\nIf working, add API keys in Space settings:")
print("β€’ OPENAI_API_KEY")
print("β€’ SERPER_API_KEY")
if __name__ == "__main__":
monitor_deployment()