Spaces:
Sleeping
Sleeping
File size: 473 Bytes
6ab316e 7921750 6ab316e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import requests
import time
url = "https://leon4gr45-openoperator.hf.space/health"
def test_health():
print(f"Testing health endpoint: {url}")
try:
response = requests.get(url, timeout=10)
print(f"Status Code: {response.status_code}")
print(f"Response: {response.json()}")
return response.status_code == 200
except Exception as e:
print(f"Error: {e}")
return False
if __name__ == "__main__":
test_health()
|