bayan-api / src /hf_inference.py

Commit History

fix: Load summarization model locally with float16 (HF free tier has no outbound DNS)
d229a9c

youssefreda9 commited on

fix: DNS endpoint discovery - test multiple HF hostnames to find reachable one
922cc55

youssefreda9 commited on

fix: Construct RequestParameters with all 6 required args (url, task, model, json, data, headers)
625b5d7

youssefreda9 commited on

fix: Construct RequestParameters properly using inspect.signature
d3fe06e

youssefreda9 commited on

fix: Try multiple _inner_post calling conventions + inspect signature
06ff15b

youssefreda9 commited on

fix: Use _inner_post transport from InferenceClient v1.19.0
82a77dd

youssefreda9 commited on

debug: Deep diagnostics to find InferenceClient internal transport
dc7f39b

youssefreda9 commited on

fix: Back to InferenceClient with correct method signatures + diagnostics
8b888b0

youssefreda9 commited on

fix: Use requests.post() directly instead of InferenceClient (version compat issue)
0405b6b

youssefreda9 commited on

fix: Use client.post() for all models, fix summarization params, better error capture
e18c6c8

youssefreda9 commited on

fix: Use huggingface_hub InferenceClient instead of raw urllib (fixes DNS inside HF Spaces)
7cd5afa

youssefreda9 commited on

fix: Add wait_for_model, debug endpoint, and better HF API error handling
2df4f2d

youssefreda9 commited on

feat: Switch all NLP models to HuggingFace Inference API
239c0bb

youssefreda9 commited on