huggingface / huggingface_hub

The official Python client for the Huggingface Hub.
https://huggingface.co/docs/huggingface_hub
Apache License 2.0
2.04k stars 533 forks source link

Support listening to Space updates #1898

Open Wauplin opened 10 months ago

Wauplin commented 10 months ago

Space infra have a SSE endpoint to get updates on the status of a Space. It would be nice to have support for this endpoint to subscribe to space updates. This would have to be implemented as a Python generator.

Example for Open LLM Leaderboard:

First discussed on slack (internal) (cc @freddyaboulton @christophe-rannou)

Note: How much time the connection stays open when you start listening to the SSE endpoint? => Til the client breaks the connection or the server restarts, which happens every time we release, you'd need to handle a reconnect

julien-c commented 10 months ago

i'd say kinda low-prio but why not!