@Sih Thanks for the question. A 502 status code indicates that the service has thrown an exception or crashed in the run() method of the score.py file.
Here is link to the document to Troubleshooting remote model deployment.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I deployed my model from local machine, but I can't predict with the API.
When I checked this endpoint with this command
curl -v http://6b3138f3-b4aa-44d3-873d-32255fb5ab50.eastus2.azurecontainer.io/score
it shows 502 bad gateway. (but without "/score", it looks fine)