Deployment of model

Hi am beginner in Pytorch, I have deployed a model in django for classifying whether lungs x ray image belong to positive or negative pneumonia. My question is that how i can make sure that the uploaded image is belong to lungs x ray.(sorry for my English )