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.25k stars 2.51k forks source link

Allow examples (maybe inputs in general?) to be cached #433

Closed abidlabs closed 2 years ago

abidlabs commented 2 years ago

Is your feature request related to a problem? Please describe. Popular Spaces have long queues but it's often a person running just one of the examples. If this computation could be cached, that would speed up inference and reduce queue lines.

Specifically: Can we create a parameter cache in the launch() method that:

abidlabs commented 2 years ago

Working great on Spaces!