ValueError: Unrecognized keyword arguments passed to SimpleRNN: {'time_major': False}

Hi folks, I am unable to build the app, it has this error

ValueError: Unrecognized keyword arguments passed to SimpleRNN: {'time_major': False}

I think model loading is a problem, but my another app is deployed on streamlit without any error https://annclass.streamlit.app/ but it does not have RNN
App Link : https://imdbreviewclassifier.streamlit.app/
Code Link : GitHub - Satnamix/IMDB_review_classifier

I did not specify Streamlit or Tensorflow versions in my requirements.py but did specify only scikit-learn==1.3.1

That was a model error, disabled grappler something which is responsible for some of the optimizations related to the computation graph.

I solved it using

import os
os.environ['TF_GRAPPLER_DISABLE'] = '1'

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.