fastai / course22

The fast.ai course notebooks
https://course.fast.ai
2.39k stars 934 forks source link

Calling huggingface spaces Gradio API does not work anymore #103

Open fawadrashid opened 11 months ago

fawadrashid commented 11 months ago

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