Spaces:
Sleeping
Sleeping
File size: 445 Bytes
6609c06 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import requests
print('π§ͺ Testing servers...')
try:
r1 = requests.get('http://localhost:5050', timeout=5)
print(f'β
Streamlit: OK - {r1.status_code}')
except Exception as e:
print(f'β Streamlit: FAILED - {e}')
try:
r2 = requests.get('http://localhost:5001/record', timeout=5)
print(f'β
Recorder: OK - {r2.status_code}')
except Exception as e:
print(f'β Recorder: FAILED - {e}')
print('π Test completed')
|