gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.77k stars 2.56k forks source link

Add virtual scrolling to the Gallery #7214

Open dnns92 opened 9 months ago

dnns92 commented 9 months ago

Is your feature request related to a problem? Please describe.
For large datasets that are accessed from a remote source, e.g. via sockets, I do not want to load the data at once, but incrementally depending what the user wants to see right nwo.

Describe the solution you'd like
For large datsets that are received from a remote source, it's necessary to not load it all in one instance, but depending on the gallery slider position. For this to work, we need two things:

Additional context
This is often referred to as virtual scrolling

pngwn commented 3 months ago

We do this for the Dataframe and virtual scrolling for images is significantly easier technically, so this seems reasonable.