File size: 227 Bytes
0bcab2c
 
 
 
 
1
2
3
4
5
6
import httpx
BASE = 'https://tvganesh538-nlp-classifier-api.hf.space'
KEY  = 'YOUR_API_KEY'
r = httpx.get(f'{BASE}/debug/predictor', headers={'X-API-Key': KEY}, timeout=30)
import json; print(json.dumps(r.json(), indent=2))