Spaces:
Sleeping
Sleeping
| 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') | |