Spaces:
Sleeping
Sleeping
| import requests | |
| import time | |
| print("Waiting for server to ensure it is up...") | |
| time.sleep(3) | |
| try: | |
| url = "http://localhost:4000/chats" | |
| print(f"Testing POST {url}...") | |
| res = requests.post(url, json={"title": "Test Chat"}) | |
| print(f"Status: {res.status_code}") | |
| print(f"Response: {res.text}") | |
| except Exception as e: | |
| print(f"Failed to connect: {e}") | |