Spaces:
Sleeping
Sleeping
File size: 241 Bytes
aefc8ad | 1 2 3 4 5 6 7 8 9 | from transformers import pipeline
pipe = pipeline("image-classification", "anurag629/swin-tiny-patch4-window7-224-finetuned-eurosat")
def getPrediction(image):
'''
Returns the prediction of the image.
'''
return pipe(image) |