Spaces:
Sleeping
Sleeping
Delete trigger_seed.py with huggingface_hub
Browse files- trigger_seed.py +0 -12
trigger_seed.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
import requests
|
| 2 |
-
import json
|
| 3 |
-
|
| 4 |
-
url = "http://localhost:8000/api/seed?clear=true"
|
| 5 |
-
try:
|
| 6 |
-
print(f"Triggering seed at {url}...")
|
| 7 |
-
response = requests.post(url)
|
| 8 |
-
print(f"Status Code: {response.status_code}")
|
| 9 |
-
print("Response:")
|
| 10 |
-
print(json.dumps(response.json(), indent=2, ensure_ascii=False))
|
| 11 |
-
except Exception as e:
|
| 12 |
-
print(f"Error: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|