File size: 445 Bytes
f93a960
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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')