# Inference API Web Widget for tons of public models: Can't load tokenizer using from\_pretrained

**URL:** <https://discuss.huggingface.co/t/inference-api-web-widget-for-tons-of-public-models-cant-load-tokenizer-using-from-pretrained/65586>\
**Category:** Models\
**Created:** [December 12, 2023, 11:15pm UTC](https://discuss.huggingface.co/t/inference-api-web-widget-for-tons-of-public-models-cant-load-tokenizer-using-from-pretrained/65586 "2023-12-12T23:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethanave](https://avatars.discourse-cdn.com/v4/letter/e/ecccb3/32.png) [@ethanave](https://discuss.huggingface.co/u/ethanave)\
**Post date:** [December 12, 2023, 11:15pm UTC](https://discuss.huggingface.co/t/inference-api-web-widget-for-tons-of-public-models-cant-load-tokenizer-using-from-pretrained/65586/1 "2023-12-12T23:15:36Z")

</div>

Still getting this on a huge amount of public models on the inference API widgets.

`Can't load tokenizer using from_pretrained, please update its configuration: Can't load tokenizer for 'aidan-o-brien/recipe-improver'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'aidan-o-brien/recipe-improver' is the correct path to a directory containing all relevant files for a AlbertTokenizerFast tokenizer.`

I have seen several threads recommending to add tokeniser.json or make various edits to the code, but these are not my models, and I would really like to be able to test these models with the inference API widget before actually cloning it or writing any code.

Here are a few, but I’ve encountered many more, as well as a bunch of models that have an inference API widget but always return nothing as the output (with no errors). If you take a look at the recipe-improver, the most recent commit is deleting app.py, which contains load\_model\_tokenizer!! Why does it still have an inference API widget on the web-page if it lacks the needed code?

> **[aidan-o-brien/recipe-improver · Hugging Face](https://huggingface.co/aidan-o-brien/recipe-improver)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Shresthadev403/food\_recipe\_generation · Hugging Face](https://huggingface.co/Shresthadev403/food_recipe_generation)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
