Cache examples

#2
by radames HF staff - opened

Hi cool demo!
You probably want to cache your examples, thus, avoiding rerunning your prediction over again
https://huggingface.co/spaces/kadirnar/AnimeSR/blob/f97472d9f9793b262d30bc272457079f2e4d2508/app.py#L59

ArtGAN org

I set the cache_examples parameter to false because it takes a lot of time. I will try again now.

ArtGAN org

Hi cool demo!
You probably want to cache your examples, thus, avoiding rerunning your prediction over again
https://huggingface.co/spaces/kadirnar/AnimeSR/blob/f97472d9f9793b262d30bc272457079f2e4d2508/app.py#L59

image.png

hi @kadirnar , I see, maybe you're example choices are too take too long for processing. When you cache the example is preprocess before launching the server.
The Space has a timeout if something doesn't bind to the expected 7860 port.
If you want cache the examples, you could choose a shorter video. Thanks

kadirnar changed discussion status to closed

Sign up or log in to comment