I created a Bird detector based on the video lesson and I created a gradio app on huggingface spaces. The app works fine when i run it own spaces but when i try to call the API from javascript like from local html file the browser gives out 403 and CORS error. I encountered the same issue running apps that other students had created. I think the direct javascript method of hitting huggingface spaces gradio app API no longer works. In-fact their documentation no longer gives out curl or javascript code snippets anymore. It is only giving a NodeJs JavaScript snippet. So i think github pages option of creating javascript apps no longer works. Do guide if there is a workaround
I created a Bird detector based on the video lesson and I created a gradio app on huggingface spaces. The app works fine when i run it own spaces but when i try to call the API from javascript like from local html file the browser gives out 403 and CORS error. I encountered the same issue running apps that other students had created. I think the direct javascript method of hitting huggingface spaces gradio app API no longer works. In-fact their documentation no longer gives out curl or javascript code snippets anymore. It is only giving a NodeJs JavaScript snippet. So i think github pages option of creating javascript apps no longer works. Do guide if there is a workaround