bayan-api / src /hf_inference.py

Commit History

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

fix: Construct RequestParameters properly using inspect.signature
89d63b5

youssefreda9 commited on

fix: Try multiple _inner_post calling conventions + inspect signature
465c938

youssefreda9 commited on

fix: Use _inner_post transport from InferenceClient v1.19.0
b363fc1

youssefreda9 commited on

debug: Deep diagnostics to find InferenceClient internal transport
381091e

youssefreda9 commited on

fix: Back to InferenceClient with correct method signatures + diagnostics
f8422c2

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

fix: Add wait_for_model, debug endpoint, and better HF API error handling
483ffaf

youssefreda9 commited on

feat: Switch all NLP models to HuggingFace Inference API
cfe3b4c

youssefreda9 commited on