Spaces:
Sleeping
Sleeping
| import requests | |
| import json | |
| url = "http://localhost:8000/api/seed?clear=true" | |
| try: | |
| print(f"Triggering seed at {url}...") | |
| response = requests.post(url) | |
| print(f"Status Code: {response.status_code}") | |
| print("Response:") | |
| print(json.dumps(response.json(), indent=2, ensure_ascii=False)) | |
| except Exception as e: | |
| print(f"Error: {e}") | |