Spaces:
Sleeping
Sleeping
Download test_servers.py from aseelflihan/syncmaster2: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/aseelflihan/syncmaster2/resolve/main/test_servers.py
- Command line
-
hf download hf://spaces/aseelflihan/syncmaster2/test_servers.py
-
curl -L -o test_servers.py https://huggingface.co/spaces/aseelflihan/syncmaster2/resolve/main/test_servers.py
445 Bytes
| 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') | |