in Medical_Text_Analysis_Resources/docker_containers/model_container/model_scripts/predictor.py [0:0]
def ping():
"""Determine if the container is working and healthy. In this sample container, we will declare
it healthy if we can load the model successfully."""
health = ScoringService.get_model() is not None # You can insert a health check here
status = 200 if health else 404
return flask.Response(response='\n', status=status, mimetype='application/json')