#How do I load a H5 file that I trained on a machine learning project onto a web application.

7 messages · Page 1 of 1 (latest)

sour orbit
#

so u r building a flask application and u wanna load a pre-trained model into ur app right

#

from keras.models import load_model
model = load_model('cnn_model.h5')

#

just use those 2 lines of code and u r good to go

#

anytime brother

floral nova
#

You can use JavaScript as well.
Or if you are lazy, just use Gradio

floral nova
#

Unsure, I’ve never used it before