Spaces:
Sleeping
Sleeping
File size: 350 Bytes
60470bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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}")
|