Skip to content

Calling huggingface spaces Gradio API does not work anymore #103

@fawadrashid

Description

@fawadrashid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions