huggingface / huggingface.js

Utilities to use the Hugging Face Hub API
https://hf.co/docs/huggingface.js
MIT License
1.37k stars 207 forks source link

[Widget] `ConversationalWidget`: Better UX / error handling when inference API throws a 503 #520

Open SBrandeis opened 7 months ago

SBrandeis commented 7 months ago

Right now if the underlying model is re-deploying, the widget just looks broken / unresponsive

The network call does end up in a 503 though - we should display an error message

image

pcuenca commented 7 months ago

An error does come up after it timeouts. Maybe a progress indicator of some sort would be enough?

Screenshot 2024-02-29 at 15 56 11
omjeem commented 6 months ago

We can utilize the Toastify library to enhance the current progress with customizable and visually appealing toast notifications.

coyotte508 commented 6 months ago

We can utilize the Toastify library to enhance the current progress with customizable and visually appealing toast notifications.

We try to avoid adding external libraries in the non-dev dependencies, but we could take inspiration from it