Spaces:
Sleeping

bayan-api / src /hf_inference.py

Commit History

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

    d229a9c
  2. fix: DNS endpoint discovery - test multiple HF hostnames to find reachable one

    922cc55
  3. fix: Construct RequestParameters with all 6 required args (url, task, model, json, data, headers)

    625b5d7
  4. fix: Construct RequestParameters properly using inspect.signature

    d3fe06e
  5. fix: Try multiple _inner_post calling conventions + inspect signature

    06ff15b
  6. fix: Use _inner_post transport from InferenceClient v1.19.0

    82a77dd
  7. debug: Deep diagnostics to find InferenceClient internal transport

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

    8b888b0
  9. fix: Use requests.post() directly instead of InferenceClient (version compat issue)

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

    e18c6c8
  11. fix: Use huggingface_hub InferenceClient instead of raw urllib (fixes DNS inside HF Spaces)

    7cd5afa
  12. fix: Add wait_for_model, debug endpoint, and better HF API error handling

    2df4f2d
  13. feat: Switch all NLP models to HuggingFace Inference API⁠

    239c0bb