Can't Access Private Gradio Space API Endpoint Through Postman
I am trying to access my Huggingface space through a Postman request. When I copy the exported curl command, it looks like this:curl --location 'https://MY_SPACE_NAME_HERE.hf.space/--replicas/RANDOMDIGITS/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer REDACTED_TOKEN_OF_MY_TOKEN_HERE' \
--data '{"data": ["data:image/jpeg;base64,PIC_IN_BASE64_HERE"]}'But when I run this request, I get:{
    "detail": "Method Not Allowed"
}How do get this request to succeed?Also my API endpoint works perfectly when I access it via the boilerplate python code that Gradio gives me. Do you know what the problem is?
2024-06-13T19:03:22Z
Maybe try adding-X POSToption to the curl command, this ensures you make a post request.curl --location 'https://MY_SPACE_NAME_HERE.hf.space/--replicas/RANDOMDIGITS/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer REDACTED_TOKEN_OF_MY_TOKEN_HERE' \
--data '{"data": ["data:image/jpeg;base64,PIC_IN_BASE64_HERE"]}' \
-X POST