huggingface.js
huggingface.js copied to clipboard
Widget should show warning from api-inference
also cc @Narsil
This would make it easier for developers of the models to make sure they have the right setup on the repo. On the sklearn side of api-inference-community, we can relay the warnings for users to see potential issues.
Mishig the warnings are sent along errors {"error": "Unknown error", "warnings": ["warning1", "warning2"]}.
The warnings are usually not the root cause of the error (which we might show or not depending for if it's a controlled error or not). But very often (in transformers at least) the warnings give a good signal on what went wrong (like sequence is too long)
i
Example of one where would it useful to see warnings:
https://huggingface.co/julien-c/skops-digits
Now that we have skops release, it'd be nice to have this in :)
Continuing the discussion at https://github.com/huggingface/api-inference-community/issues/96#issuecomment-1260642472
i think this works that way now no? @mishig25
We show errors but not sure if we display warnings of the API
ah yes, read too fast