# SageMaker JumpStart provides APIs as part of SageMaker SDK that allow you to deploy and fine-tune models in network isolation using scripts that SageMaker maintains.

from sagemaker.jumpstart.model import JumpStartModel


model_id = "huggingface-zstc-emrecan-bert-base-turkish-cased-allnli-tr"
endpoint_input = {'sequences': 'Dolar yükselmeye devam ediyor.', 'candidate_labels': ['ekonomi', 'siyaset', 'spor']}

model = JumpStartModel(model_id=model_id)
predictor = model.deploy()
response = predictor.predict(endpoint_input)
print(f"Inference:\nInput: {endpoint_input}\nResponse: {response}\n")