Spaces:
Runtime error
Runtime error
Update app.py
Browse files39 unmodified lines404142434344454639 unmodified lines return f"Predicted class using {model_choice}: {class_name}"
# Example usageimg = tf.random.normal(shape=(224, 224, 3)) # Replace with your image dataimg = tf.random.normal(shape=(150, 150, 3)) # Replace with your image datamodel_choice = "facebook/vit-base-patch16-224-in21k-finetuned-image-coco" # Replace with your desired modelresult = classify_image(img, model_choice)print(result)app.py+1-1