I created an R Shiny app which uses an existing hdf5 keras model, built seperatly. Locally it works well. The app also works on shinyapps.io except for the import of the hdf5 model, by looking at the log, it crashes when important the model, here is the error message:
"Error in load_model_hdf5: The h5py Python package is required to save and load models"
I created locally a python environment which includes all needed packages: tensorflow, keras, h5py etc. I also indicated in the .Rprofile file that reticulate package must point to this python environment. When deploying the app in shinyapps.io, I do not import the python environnement of course. I am sure the shinyapps loads keras package because the code does not crash at this step. Does anyone already had this problem ?
Many thanks in advance,