Sometimes arbitrarily, I get an inference error with some of the examples in my gradio app
Hi!First of all, to the Gradio team, thanks for the excellent library!I built an image classifier app withgradio, and sometimes arbitrarily, I get an inference error with some of the examples in my app.The app space:Croupier Creature App - a Hugging Face Space by alkzar90Any advice to get some logging information or to debug better to catch this behavior?Best,Cristóbal
2022-08-15T19:08:34Z
Hi@alkzar90, I see you’ve disable thecache_examples. I  don’t get any errors testing your app. It might be still related to the thisAdd image examples using Gradio "API mode" - #4 by alkzar90maybe@freddyaboultoncan help?
2022-08-15T21:04:10Z
Hi@alkzar90!Did you check the logs on the machine running the space? There is aSee logsbutton right next to the logging status.image1602×252 33.8 KBMy guess is that you’re being rate limited. You can verify because the logs will say something likeCannot complete request to Huggingface API.  If this is the case, passing anapi_tokentoInterface.loadshould help if that’s the case.In general though, anything you print (you can also uselogger.log) from your prediction function will be logged to the Docker logs working on the machine.There are open issues around providing clearer error messages, see956and2014. If they would be relevant to you, please comment on them so that we know how to prioritize!