Tensorflow model giving same output in streamlit

I have built sarcasm detector using tensorflow(2.0). I am trying to integrate that model into Streamlit and make predication. The model works fine and makes correct predication in Jupyter notebook but when I try to pass text to model for inference it gives same output again and again.