Spaces:
Sleeping
Sleeping
| #!/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() | |