Hi,
The output you get is the feature vector from resnet50.
You need now to add your classification head with the two classes you want.
To have a complete code, you can see it on this link: Transfer learning and fine-tuning  |  TensorFlow Core 8
the main difference is that on the tutorial, the base model is MobileNetV2 instead of ResNet50, but it’s the same idea