predicted_label = logits.argmax(-1).item()
model.config.id2label[predicted_label]
'beignets'

Load an image processor to preprocess the image and return the input as TensorFlow tensors:

from transformers import AutoImageProcessor
image_processor = AutoImageProcessor.from_pretrained("MariaK/food_classifier")
inputs = image_processor(image, return_tensors="tf")

Pass your inputs to the model and return the logits: