Keras
Using Keras at Hugging Face
Exploring Keras in the Hub
Using existing models
pip install huggingface_hub["tensorflow"]from huggingface_hub import from_pretrained_keras
model = from_pretrained_keras("keras-io/mobile-vit-xxs")
prediction = model.predict(image)
prediction = tf.squeeze(tf.round(prediction))
print(f'The image is a {classes[(np.argmax(prediction))]}!')
# The image is a sunflower!Sharing your models
Additional resources
Last updated


