# Python HF Not Working

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-hf-not-working%2F161237%3E%5C
**Category:** Beginners\
**Created:** [June 30, 2025, 9:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-hf-not-working%2F161237 "2025-06-30T21:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 1, 2025, 12:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-hf-not-working%2F161237%2F2 "2025-07-01T00:12:52Z")

</div>

It cannot be used via API unless it is a deployed model, and deployed models are occasionally changed. [That model does not appear to be deployed](https://huggingface.co/distilbert/distilgpt2).

> [@Persistent 404 Not Found Errors with Public Inference API](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-404-not-found-errors-with-public-inference-api%2F154119)%3A
>
> Problem: For the past day or so, all My attempts to make POST requests to the public Inference API endpoint result in a 404 Not Found error. This happens regardless of the model I try to query, including standard, known-available models like gpt2. The response body simply contains “Not Found"“ My Hugging Face Username: Mehdimemar Troubleshooting Steps Taken: Model Validity Confirmed: I’ve tested numerous valid model IDs (like gpt2, distilbert-base-uncased-fine tuned-sst-2-english, various …

These are [the models currently deployed with Hugging Face](https://huggingface.co/models?inference_provider=hf-inference&sort=trending).

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-hf-not-working%2F161237)._
