Bug-Free Gradio Interface not loading on HFS
My faulty space:huggingface.coWeekend Builder - a Hugging Face Space by DavidD003Discover amazing ML apps made by the communityand its duplicate, also faulty:huggingface.coWknd Scheduler - a Hugging Face Space by DavidD003Discover amazing ML apps made by the communityThis is not an ML deployment and the problem is, I assume, only an interface problem and not do with my python code.I’m using the Gradio Blocks feature which is listed as ‘new’ in the documentation.My interface was working, until I made a change and then it wasn’t. It builds and says running. The logs say it is running and hosted etc. But the ‘App’ page is just the little 2 yellow squares gradio animation, but frozen. The app isnt there to be interacted with.I tried all of the following, no joy:Commenting out the most recent lines of code in the interface after which the bug presented itself*Commenting out significantly larger chunks of the code until the interface was almost nothing. Still not loadingRestarting computerDifferent browserOpening on mobileCreating a new space and copying all same files etc into it. Same problemI tried running jupyter on my computer, and then running my app file locally. This worked. While, in jupyter, there is still the same image of the yellow blocks frozen, im not sure if its supposed to be animated. I click the local hosted link and it opens in a new tab, working.Any way I can get HFS working for my app again? I was just about ready to deploy to end users… Considering there are no error reports whatsoever I cant make sense of this.
2023-06-20T11:57:50Z
Hello,I don’t know if the following is your case, but I reply in case anyone is having this problem.One thing that may be happening is that you assign the Interface to a variable. In that case, the app would run with no bugs, but the Interface won’t show up. Example below.Don’t do:iface = gr.Interface(...).launch()Do instead:gr.Interface(...).launch()