Hi, I’ve created a simple app, its a docker file with a fastAPI api. There are 2 endpoints. GET (“/”) and POST (“/inference”). After the building process, I can see the Hello Work working ok on the browser. But im enable to reach it from curl. The app is served at 5000 port. If i do it like this:
curl -X GET --location ‘https://huggingface.co/spaces/my_user/myspace’ --header ‘Content-Type: application/json’ --header ‘Authorization: Bearer <MY_HG_TOKEN>’
I get the html
If i do it like this
curl -X GET --location ‘https://huggingface.co/spaces/my_user/myspace:5000’ --header ‘Content-Type: application/json’ --header ‘Authorization: Bearer <MY_HG_TOKEN>’
I get {“error”:“Invalid username or password.”}:
I added the app_port to the README
Any ideas what Im missing ?