predicted_class_id = logits.argmax().item()
model.config.id2label[predicted_class_id]
'POSITIVE'

Tokenize the text and return TensorFlow tensors:

from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stevhliu/my_awesome_model")
inputs = tokenizer(text, return_tensors="tf")

Pass your inputs to the model and return the logits: