nlp-classifier-api / debug_pred.py
tvganesh2008's picture
Initial commit - clean codebase
0bcab2c
Raw
History Blame Contribute Delete
227 Bytes
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))